Home forums Using CanvasJS in Label

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 9 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19770

    erichfrom
    Member

    dataPoints: [{ y: 1, label: “NO <br> 100%” }, { y: 0, label: “SI <br> 0%” },

    I need to put a <br>, how do I do it?

    #19773

    Indranil Deo
    Member

    @erichfrom,

    It is not possible to add <br> to label as of now instead, you can use labelMaxWidth property of axisX/axisY to wrap the label once the label-width reaches the specified max-width.

    Please take a look at this jsfiddle.

    ___________
    Indranil Deo,
    Team CanvasJS

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

You must be logged in to reply to this topic.