Home forums Using CanvasJS Plotting X axis with different Colours

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 9 months, 3 weeks ago.

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

    basu
    Member

    Hi,
    Is it possible to plot X axis with different colours. For example, x axis values from 0-99 in red, values from 100-199 in green, values from 200-399 in orange colour?

    #9870

    Vishwas R
    Keymaster

    Basu,

    If you are using column or bar chart types, you can set color to multiple dataSeries . Here is an example. And if it is for line chart, you can set multiple dataSeries as shown in this example to achieve it

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

You must be logged in to reply to this topic.