Home › forums › Using CanvasJS › bar chart label colour by x value
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 4 years, 12 months ago.
Hi, is there a way to define specific colors based on the data value in X axis or Y axis? For example when x:1 then the colour for that label bar is red, when x:2 then the colour for that label bar is blue etc.
There is no way to handle this case automatically. But you can do that check yourself and set color property of individual dataPoints accordingly.
You must be logged in to reply to this topic.