Home forums Using CanvasJS Access Y-Axis Values and Color Corresponding To Current Crosshair Position

This topic contains 1 reply, has 2 voices, and was last updated by  Manoj Mohan 5 days, 22 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25775

    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?

    #25814

    @bfailing,

    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.

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.