").css({
"width": "4px",
"height": 0,
"border": "5px solid " + entry.color,
"overflow": "hidden"
}),
- borderbox = $("
").css({
+ borderbox = $("
").css({
"border": "1px solid " + options.legend.labelBoxBorderColor,
"padding": "1px"
});
rowBuffer.append(
- $("
").addClass("legendColorBox").append(borderbox.append(colorbox)),
- $(" | ").addClass("legendLabel").html(entry.label)
+ $(" | | ").addClass("legendColorBox").append(borderbox.append(colorbox)),
+ $("
| ").addClass("legendLabel").html(entry.label)
);
}
@@ -3026,7 +3025,7 @@ Licensed under the MIT license.
} else if (p.charAt(1) === "w") {
pos.left = (m[0] + plotOffset.left) + "px";
}
- var legend = $("
").addClass("legend").append(table.css(pos)).appendTo(placeholder);
+ var legend = $("
").addClass("legend").append(table.css(pos)).appendTo(placeholder);
if (options.legend.backgroundOpacity !== 0.0) {
// put in the transparent background
// separately to avoid blended labels and
@@ -3045,7 +3044,7 @@ Licensed under the MIT license.
var div = legend.children();
// Position also applies to this
- $("
").css(pos).css({
+ $("
").css(pos).css({
"width": div.width() + "px",
"height": div.height() + "px",
"background-color": c,