chartjs-plugin-annotation icon indicating copy to clipboard operation
chartjs-plugin-annotation copied to clipboard

"hover" options are missing

Open stockiNail opened this issue 3 years ago • 1 comments

The current annotations options are including a set of options which can be changed when the element is hovered.

For instance, backgroundColor or font.

These new options could be added in order to avoid to the user to implement an event handler to do that.

It seems currently disabled in CHART.JS for subresolver. (see https://github.com/kurkle/chartjs-chart-treemap/issues/149#issuecomment-1281203292)

stockiNail avatar Nov 09 '22 10:11 stockiNail

The active property of the element is not changing to true when an annotation element is hovered. This is because CHART.JS is managing it for "data" element of a controller and not to other elements, like the element created by the plugin.

Therefore this should be managed internally by the plugin itself but it could be an useless overhead just for hovering.

stockiNail avatar Nov 09 '22 12:11 stockiNail