Home forums Using CanvasJS Different grid color for specific index

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

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


    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.



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



    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?



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

    • This reply was modified 5 years, 9 months ago by  Sunil Urs.

    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.