Reputation: 129
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,
I need to increase font size for x axis and value labels. Thanks.
Upvotes: 4
Views: 8675
Reputation: 8359
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
Upvotes: 4