Home forums Using CanvasJS A Axis Label Click Handler

This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 2 months, 1 week ago.

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

    Hi,

    Is it possible to click on the x axis label? When i draw the graph if the y value is 0, the chart will not be drawn and i am not able to click on it. Is there any work around?

    #15801

    Indranil Deo
    Member

    @vishnumohan89

    Adding click event to axis label is not possible as of now. If the y value of a dataPoint is set to 0, the representation of dataPoint is not visible at all. That’s why it is almost impossible to click that dataPoint and fire an event.
    If you are using column/bar type of chart, you can use scatter chart for dataPoints that equals to zero. You can set marker size and would be able to click that marker. Please take a look at this jsFiddle.

    ____________
    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.