Hi,
I am using TeeChart for.net v3 version. I am creating GUI in C#. I am able to create multiple y-axis based on incoming data from some unit. I am creating separate axis with different color for each axis. The scale on each axis is displaying with black color. I want to display the scale also with the same color as the axis. You can see the image how it is now and how i want please look into this question.http://stackoverflow.com/questions/1519 ... n-teechart. If this was not enough then please ask me for more information.
How to change color of scale display.
Re: How to change color of scale display.
Hello vera,
If you want modify the color of labels you need change font color property of labels because letters have the same color of Axes. You can do something as next code:
Could you tell us if previous lines of code works in your end? I answer, too, in the stack overflow link: http://stackoverflow.com/questions/1519 ... n-teechart.
Thanks,
If you want modify the color of labels you need change font color property of labels because letters have the same color of Axes. You can do something as next code:
Code: Select all
axis.Labels.Font.Color = axis.AxisPen.Color;
axis.Ticks.Color = axis.AxisPen.Color;
axis.MinorTicks.Color = axis.AxisPen.Color;
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: How to change color of scale display.
Hi Sandra,
Thank you very much for your replay, The above code of lines working perfectly to display labels and axis with same color. I need one more small help what should i need to do to display my labels(scales)horizontally. because now i am displaying scale vertically and its taking more space if i have more axis. I want to display the scale as shown in the second image from stack overflow question.
Could you tell us if previous lines of code works in your end?
I have tried your code separately to understand properly its working but in my case i am doing with other way.
Thank you very much for your replay, The above code of lines working perfectly to display labels and axis with same color. I need one more small help what should i need to do to display my labels(scales)horizontally. because now i am displaying scale vertically and its taking more space if i have more axis. I want to display the scale as shown in the second image from stack overflow question.
Could you tell us if previous lines of code works in your end?
I have tried your code separately to understand properly its working but in my case i am doing with other way.
Re: How to change color of scale display.
Hello veera,
To change the angle of scale (labels) you only need change the property Angle of labels as do in next lines of code:
Thanks,
To change the angle of scale (labels) you only need change the property Angle of labels as do in next lines of code:
Code: Select all
axis.Axes.Custom[i].Labels.Angle = 90;
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: How to change color of scale display.
Hi Sandra,
Thank you very much for your help, That is what i need. Its working perfect. 1000 thanks.
Regards,
Veera.
Thank you very much for your help, That is what i need. Its working perfect. 1000 thanks.
Regards,
Veera.