mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Option 'display' that allows to hide a specific element from the legend
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user