Home forums Using CanvasJS indexLabel in two lines

Tagged: ,

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

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

    gabrijelita
    Member

    Hello,

    is it possible to break the words inside indexLabel and to style them separately? I have this case https://prnt.sc/fzt7i9.
    And for now I have ==>indexLabel: “{y} kn/L”, but I need that in two lines.

    And one more question, at the AxisX I have dates and dash line. I have added grid on AxisX, but i get grid under and above the data, but I only need it between AxisX and the data value just like in the above screenshot. Is it possible to achieve that?

    #15660

    Indranil Deo
    Member

    @gabrijelita,

    As of now it is not possible to have different font style in the same indexLabel.

    Also drawing grid lines only between dataPoint and axis is not possible as of now. However, you can take a look at this work-around.

    __
    Indranil Deo
    Team CanvasJS

    #15701

    gabrijelita
    Member

    This is great. Thank you.

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

You must be logged in to reply to this topic.