Home Forums Chart Support newline in labels

newline in labels

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

    Hi! Could I ask for help with inserting newline in labels?
    The <br/> seems to work on the tooltip, but they still display as one big line on the axis label.


    Thank you in advance!



    HTML tags are not supported in title, labels and other elements except toolTip, as of now. However to break the axis label, you can set labelMaxWidth property which wraps the axis labels if width of labels exceeds the max-width of it.

    Setting axisX labelMaxWidth in chart

    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.