Home forums Using CanvasJS IndexLabel on Stacked Chart

This topic contains 2 replies, has 2 voices, and was last updated by  Meraj Ahmed 3 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19836

    Meraj Ahmed
    Member

    I want to show indexLabel on stacked column chart. One option is to put indexLabel on upper stack datapoints.
    IndexLabel show height of stack Chart (y-axis value). I am also using hide/show dataseries on clicking legend using this.
    So if we put indexLabel on upper dataseries then indexLabel will also hide when click on legend of this dataseries.

    I want to show indexLabel independently. How to do this.

    #19844

    Vishwas R
    Keymaster

    Meraj Ahmed,

    You can achieve this by finding the last visible dataSeries in the chart and adding indexLabels to it. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

    #19845

    Meraj Ahmed
    Member

    Wonderful,
    Thank u very much

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

You must be logged in to reply to this topic.