Home › forums › Using CanvasJS › Setting thresholds for line color
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 2 years, 3 months ago.
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?
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.
You must be logged in to reply to this topic.