I would need to get the data according to a clicked/doubleClicked data-point (y-axis value, series name).
I'm not sure if this is already possible but I can't find any information on this.
When clicking a data-point on the chart the variable 'e' in the above code only gives me mouseX, mouseY and pointXValue (= 'x-value' of the data-point). It does not give me the name of the series element or the 'y-value' of the clicked point. Is there any way to achieve this?
Maybe this can be done by using the mouseX/Y coordinates to get the data point?
I would need to get the data according to a clicked/doubleClicked data-point (y-axis value, series name). I'm not sure if this is already possible but I can't find any information on this.
Using the following:
options = { type:'stackedAreaChart', useInteractiveGuideline: true, InteractiveLayer:{ dispatch:{ elementDblClick:(e)=>{ console.log(e); } } } }
When clicking a data-point on the chart the variable 'e' in the above code only gives me mouseX, mouseY and pointXValue (= 'x-value' of the data-point). It does not give me the name of the series element or the 'y-value' of the clicked point. Is there any way to achieve this?
Maybe this can be done by using the mouseX/Y coordinates to get the data point?