Home forums Using CanvasJS Labels on one bar of stacked bar

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  Bivek Singh 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15254

    paultaylor
    Member

    I had a Bar, that has 10 bars. Ive changed it to stacked bar of 8 bars because three of the bars are either ored, i.e a particular value will only add to one of these three bars. So seven of the bars have a single value, and one bar contains three stacked values.

    This works but I want my stacked bar to show what the three parts represent rather than just their numerical value
    I dont want the three value son the legend below the graph, since these three values are only relevant to the one bar

    NOte:I’ve added a mockup image but doesn’t seem to be displaying url is https://pasteboard.co/1wbHgXc2Y.jpg

    Mockup

    • This topic was modified 3 weeks, 2 days ago by  paultaylor.
    • This topic was modified 3 weeks, 2 days ago by  paultaylor.
    #15267

    Bivek Singh
    Moderator

    @paultaylor,

    Are you looking for indexLabel?

    —-
    Bivek Singh

    #15270

    paultaylor
    Member

    Maybe, but in the example they just show at the end of the bar, I would want the on the bar as my mockup shows

    #15271

    Bivek Singh
    Moderator

    @paultaylor

    You can place indexLabel inside bar by setting indexLabelPlacement to “inside”. You can also set orientation for indexLabels using indexLabelOrientation.

    —-
    Bivek Singh

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

You must be logged in to reply to this topic.