Home forums Using CanvasJS Color the chart based on the Y-Axis

This topic contains 1 reply, has 2 voices, and was last updated by  Vishwas R 4 months, 1 week ago.

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

    redfyre
    Member

    Is there any way to do this? For example, I would want y-values 0-10 to create a blue fill on the graph and values 11-20 to be red and 21-30 to be yellow and so forth. Imagine the graph just having a color spectrum background. It’s pretty much the same as interlaced colors but with greater variation. These would be static colors so they wouldn’t change but I would want the line graph to be visible on top of these colors.

    Thanks!

    #19642

    Vishwas R
    Keymaster

    @redfyre,

    You can use stripLines to achieve this. Please take a look at this jsfiddle.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.