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 2 years, 8 months ago.

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

    sparky
    Participant

    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.

    #6129

    Sunil Urs
    Keymaster

    There is no way to handle this case automatically. But you can do that check yourself and set color property of individual dataPoints accordingly.

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

You must be logged in to reply to this topic.