Group: Forum Members
Last Active: 12 Years Ago
Posts: 6,
Visits: 1
|
How do I change the Pie Chart Label font size?
I was able to change the color, i tried this:
pie.DataLabelStyle.TextStyle.FontStyle = New NFontStyle(ddlFont.SelectedValue, ddlItemFontSize.SelectedValue) pie.DataLabelStyle.TextStyle.FillStyle = New NColorFillStyle(cpLabelColor.SelectedColor)
i was able to change the color, but not the font style/size?
on the same note, how do you turn of the outline box? I found the following mention for but how do you do that in code?
"In order to change the data label style (from Text Style), you will also have to change the default Appearance options. From Chart > Chart Areas > Appearance, uncheck Automatic and Outline Data Labels."
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Khanh, You need to simply change the emsize: pieSeries.DataLabelStyle.TextStyle.FontStyle.EmSize = new NLength(10, NGraphicsUnit.Point); Regarding the other text style properties you can take a look at the following topic in the docs: http://helpdotnetvision.nevron.com/Presentation_Graphics_AppearanceStyles_TextStyle_Text_Style.html (the one you're looking at refers to the chart for SSRS, not the .NET component).
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 12 Years Ago
Posts: 6,
Visits: 1
|
thanks, that works!
|