user1672932
user1672932

Reputation: 129

How to set label size in mschart?

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.

Upvotes: 4

Views: 8675

Answers (1)

Pilgerstorfer Franz
Pilgerstorfer Franz

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

Related Questions