Nevron Forum

Pie Chart Label size

https://www.nevron.com/Forum/Topic7214.aspx

By Khanh Nguyen 1 - Wednesday, December 12, 2012

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."


By Nevron Support - Thursday, December 13, 2012

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).

 

By Khanh Nguyen 1 - Thursday, December 13, 2012

thanks, that works!