Hi,
I would like to be able to click on an item in the legend to get its content. e.g. the following script returns “my item is: [object Object]”
legend: {
display: true,
position: 'bottom',
// on click of a legend
onClick: function (evt, item) {
console.log("my item is: " + item);
}
}
So, what’s in the [Object Object] array??? Is there some way I can get the name of the legend item — and pass it on into a function to do whatever?
TIA
JohnJeff