Home forums Using CanvasJS Setting thresholds for line color

Tagged: 

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

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

    nefron
    Member

    Hi–

    I’m using a line chart and was wondering if it was possible to color all parts of the graph below 0 as red and everything above as black. This would involve having multicolored lines (if the line crossed 0 between 2 data points). Is this possible natively in canvasjs? If not, is it possible programatically?

    Thanks.

    #10385

    Vishwas R
    Keymaster

    Nefron,

    As of now this feature is not available. But you can change color of line once it switches from negative to positive and vice-versa. Here is an example.

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

You must be logged in to reply to this topic.