4

this may be easy to achieve it coz I can't find any posts here. How can I set label size in mschart either in client or server side? Set LabelAutoFitMinFontSize doesn't work in my case. I'm using webform and heres my graph,

enter image description here

I need to increase font size for x axis and value labels. Thanks.

user1672932
  • 129
  • 1
  • 2
  • 9

1 Answers1

4

I tried this code on a sample chart of mine and it did work.

Chart1.Series(0).IsValueShownAsLabel = True
Chart1.Series(0).Font = New Font("Times", 30)  ' will change value label font
Chart1.ChartAreas(0).AxisX.LabelStyle.Font = New Font("Verdana", 28)  ' will change x-axis label font style
Pilgerstorfer Franz
  • 8,303
  • 3
  • 41
  • 54