You must be logged in to post your query.
Home › Forums › Chart Support › Display tooltip without source point
Hi, I have a simple spline chart ( 100 points )
I would like to be able to click on the chart between 2 points to display its coordinates.
https://canvasjs.com/docs/charts/chart-options/data/click/ only allows you to click on a datapoint itself.
Is there any way to click on the chart between 2 datapoints ?
thanks
@creteurlouis,
You can bind mouse events to the chart-container(div) and get mouse coordinates in pixels, which you can convert to corresponding value along axis using convertPixelToValue. Please take a look at this JSFiddle for an example.
— Shashi Ranjan Team CanvasJS
You must be logged in to reply to this topic. Login/Register