Home forums Using CanvasJS Vertical stripline labels?

This topic contains 2 replies, has 2 voices, and was last updated by  cshickman 5 months ago.

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

    cshickman
    Member

    Hi,

    My stacked bar chart has a requirement for me to have a label at the top of a stripline. But as far as I can tell, there is no way I can do that. I thought I could maybe accomplish this by putting the striple on axisY2 instead, but that doesn’t seem to work.

    Here is a jsfiddle: http://jsfiddle.net/4vq1t8qm/11/

    I’d ideally like to have the stripline stop at the bottom of the bar too if possible rather than extending all the way through.

    I would attach a screenshot of what I’m trying to accomplish, but these forums don’t seem to have an upload button.

    Thanks!

    #14067

    Vishwas R
    Keymaster

    @cshickman,

    You can position stripline label on top of it by adding stripline to axisY2. Please check this updated jsfiddle.

    Its not possible to stop drawing line at end of bar itself, but it can be stopped to the end of plotArea where axis-line will be rendered by setting tickLength to 0 (zero).


    Vishwas R

    #14077

    cshickman
    Member

    Thank you!!

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

You must be logged in to reply to this topic.