简体   繁体   中英

C# Change Excel chart label orientation using EPPlus

There doesn't seem to be any method in EPPlus for changing the orientation of tick labels on a chart.

I can see it's possible to make changes by using the XML properties exposed by ChartXML but documentation for this seems to be thin on the ground. Can anybody help me out here, please?

Thanks

John

Newer version of Epplus (from 5 onwards I think) support this - you can use Axis.TextBody.Rotation and set it between -90 and 90.

chart.XAxis.TextBody.Rotation = -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