Home › forums › Using CanvasJS › bar chart label colour by x value
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.