Option 'display' that allows to hide a specific element from the legend

This commit is contained in:
Vincent Broute
2013-09-25 13:06:46 +02:00
parent e31ba7557d
commit 3a931f46db
+2
View File
@@ -404,6 +404,7 @@
}
for(var i = 0, length = legendOptions.slices.length; i < length; ++i) {
if (typeof legendOptions.slices[i].display == 'undefined' || legendOptions.slices[i].display == true) {
defaultElemOptions = (legendType == 'plot') ? options.map['defaultPlot'] : options.map['defaultArea'];
legendOptions.slices[i].attrs = $.extend(
{}
@@ -484,6 +485,7 @@
})(i, elem, label);
}
}
}
// VMLWidth option allows you to set static width for the legend
// only for VML render because text.getBBox() returns wrong values on IE6/7