Home Forums Chart Support Question Regarding String Values on Y-Axis in CanvasJS

Question Regarding String Values on Y-Axis in CanvasJS

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

    Hi,

    I am working on a chart using CanvasJS where the X-axis contains dates. For the Y-axis, I would like to display values such as 10QMB, 30QMB, 50QMB, etc.

    Could you please confirm if it is possible to show string values (like 10QMB) on the Y-axis in CanvasJS, instead of only numeric values?

    Could you please guide me on the best approach to achieve this?

    Looking forward to your support.

    Khurram

    • This topic was modified 6 days, 8 hours ago by khurram.khan.
    • This topic was modified 6 days, 8 hours ago by khurram.khan.
    #61402

    Khurram,

    You can set the suffix property of axisY to “QMB” to display labels as 10QMB, 20QMB, etc. If you’d like to show something before the numbers, use the prefix property. For more details and live examples, please refer to the documentation.

    CanvasJS axisY Label Suffix


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.