|
[Polar Chart] How to change the labels color according to conditions |
Posted by Choi on Feb-25-2020 14:36 |
|
Hi,
We are using the chart director 6.0.10 version.
I want to know how to change the labels color according to condition in the Polar Chart.
for example.for GGG, HHH, LLL, MMM as shown below,
I want to change labels color to red.
Thank you
Chunk
|
Re: [Polar Chart] How to change the labels color according to conditions |
Posted by Peter Kwan on Feb-25-2020 23:22 |
|
Hi Choi,
Instead of using "GGG" as the label, you can use "<*font,color=FF0000*>GGG". The label GGG will then be in red. See:
https://www.advsofteng.com/doc/cdcpp.htm#cdml.htm
Hope this can help.
Regards
Peter Kwan |
Re: [Polar Chart] How to change the labels color according to conditions |
Posted by Choi on Feb-26-2020 15:29 |
|
Hi.
I checked your answer.
But, I want is the color to change depending on the condition.
For example,
if(data == 2.88 || data == 3.08 || data == 3.17 || data == 3.25)
{
Label.text.color = red;
}; |
Re: [Polar Chart] How to change the labels color according to conditions |
Posted by Peter Kwan on Feb-26-2020 22:12 |
|
Hi Choi,
You can set the text based on condition:
string label = "GGG";
if(data == 2.88 || data == 3.08 || data == 3.17 || data == 3.25)
label = "<*font,color=FF0000*>" + label;
Regards
Peter Kwan |
|