hello, I've been analyzing, debugging the data and reviewing forums and I can't find how to change the font size for the legends.
I attach an example, even the attribute does not appear if I allow the user to make changes, there is no option to change the font size.
I appreciate the help you can give me
|
this.chartControl1.Legend.Font = new Font(FontFamily.GenericSansSerif,15); |
Hello, thanks for the answer, it confirms that what I was doing before generating the query was correct.
There must be some other property that prevents increasing the font size, some kind of automatic resize.
I want to increase the font size of these legends
Except for the first line of code, add the rest to validate if it correctly changes other properties of the object.
And if I change the background color it works correctly, for example to RED
The same with showing or not the border and other properties, but what I can't get to increase is the font size.
The value of the property changed correctly as you can see in the Visual Studio WATCH image.
I put an exaggerated value of 300 but it doesn't work with 25, 30, 40, 50 as font size either.
Could there be some other property that makes it not apply the font size directly?
hi, the example send by you works very well.
In my case increase the size of the "TEXT" attribute but not the series's labels.
I'm going to check my code looking for the root cause
Thanks for your help!!!
hi again, congrats to me!!, :)
Solved adding this code line