Closed calebmusson closed 5 months ago
Fixed in https://github.com/mussonindustrial/embr/commit/075a0b9985f73a7f9f022719e83c1ef2ab470857.
The following filter only shows legend items with text 'Dataset 1':
labels: {
filter: (item) => console.log(item); return item.text == 'Dataset 1';
}
When attempting to use the filter and generateLabels options within the legend plugin the following error occurs. Based on the documentation filter should return true or false. Works when returning true but if any datasets return false the error will occur.
TypeError: Cannot read properties of undefined (reading 'datasetIndex')