You must be logged in to post your query.
Home › Forums › Chart Support › Access Y-Axis Values and Color Corresponding To Current Crosshair Position
On a chart with the crosshairs enabled, is it possible to access the y-axis value(s) and color corresponding to the current crosshair position? With other chart packages, it is possible to access the data via the tooltip (i.e. the data displayed in the tooltip) or the legend. What are the options with CanvasJS?
Sorry, crosshair updated / changed event is not available as of now. However, you can get the current value through labelFormatter of crosshair and the dataSeries in contentFormatter of toolTip.
If this doesn’t fulfill your requirement, kindly share JSFiddle and brief us more about your requirement so that we can help you to resolve it.
You must be logged in to reply to this topic. Login/Register