简体   繁体   中英

change column value to vertical in MSchart

I create a chart with MSchart but for some charts I wanna to make data values of each column to be vertical. There is no much space for labels to be horizontal. I see some similar question but none of them works for me.

资料值

To turn the DataPoint labels you need to first turn off the SmartLabelStyle :

 chart1.Series[0].SmartLabelStyle.Enabled = false;

Now you can set the LabelAngle :

 chart1.Series[0].LabelAngle = 90;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM