Home forums Using CanvasJS in Label


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

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


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

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


    Indranil Deo


    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.