Home Forums Chart Support Label below Splitline (New problem)

Label below Splitline (New problem)

Viewing 4 posts - 1 through 4 (of 4 total)
  • #35777

    I asked this question before in “Label below SplitlineLabel below Splitline“.

    There was no problem at this time.
    The version up may have changed the specification, so that a line is drawn under the label, as in this JsFiddle.

    There is a line under the labels L1-L4.

    How can I solve this problem?

    #35794

    @kinokatsu,

    There is no changes made related to stripline in recent releases. However, I observe that the JSFiddle provided in the other forum thread seems to be working fine. Also the color property is not set to transparent in the JSFiddle that you have shared. Setting it to transparent (currStripline.set("color", "transparent");) seems to be working fine. Please take a look at this updated JSFiddle for complete working code.

    stripline label positioned below line


    Vishwas R
    Team CanvasJS

    #35813

    Hi Vishwas.
    thanks for your reply.

    “ohter forum thread” does not have “0” in the Y-axis scale, so the split line is just not visible.
    ( dataPoints: [{ x: 10, y: 20 }, … -> { x: 10, y: 0 })

    I found that by making the line color transparent, the line under the label disappears from view.
    This is what I wanted to do.

    Another way to do this is to add “thickness:0” to “stripLines.push”.

    #35815

    @kinokatsu,

    Yes, setting either color to transparent or thickness to 0 will work in this case. Thanks for the reply which will help others who has similar use-case.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.