|
Multicolor axis labels |
Posted by Tushar Dhumal on Oct-26-2018 15:23 |
|
Hi
I am using simple XYChart bar chart
I am showing bars for days
here i want to use different x-axis label colors. like weekdays black colour, weekend red colour.
https://www.advsofteng.com/doc/cdpydoc/Axis.setColors.htm
setColors(axisColor [, labelColor [, titleColor [, tickColor ]]])
this gives same colours to all. |
Re: Multicolor axis labels |
Posted by Peter Kwan on Oct-26-2018 17:10 |
|
Hi Tushar,
Normally, the labels are like "Mon", "Tue", "Wed", ..... They all use the same font style, font size and font color.
If you want the labels to have styles (eg. different colors), you can use CDML tag, like:
"Mon", "<*color=CC0000*>Tue", "Wed", ....
In the above, the "Tue" label will use red color.
See:
https://www.advsofteng.com/doc/cdcpp.htm#cdml.htm
Hope this can help.
Regards
Peter Kwan |
Re: Multicolor axis labels |
Posted by Tushar Dhumal on Oct-26-2018 19:55 |
|
It worked, Thanks ![:)](icons/icon7.gif) |
|