Home forums Using CanvasJS Different grid color for specific index

This topic contains 4 replies, has 3 voices, and was last updated by  Allan 3 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5404

    raj
    Participant

    How to give different grid color for specific index? for example I want different color for horizontal grid line only for index 40 on YAxis.

    #5411

    Sunil Urs
    Keymaster

    Raj,

    It is not possible to set color for individual grid lines.


    Sunil

    #5483

    Allan
    Participant

    What about different colors for individual labels in a column chart where labels are shown on the x-axis? I want to show a column chart of winners and losers (positive and negative values) and want the winners’ names in green and the losers’ names in red. I see I can use label font color to color the whole axis, but can I use different colors for individual labels?

    #5504

    Sunil Urs
    Keymaster

    Allan,

    Though it is not possible to color individual labels, you can highlight selected columns using index labels.

    • This reply was modified 3 years ago by  Sunil Urs.
    #5525

    Allan
    Participant

    Thanks. The index labels are pretty cool.

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

You must be logged in to reply to this topic.