We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

TickLabels.Offset not working?


I'm trying to move the axis labels in closer to the axis line on my chart, but TickLabels.Offset does not appear to be having any effect. It says in the documentation that the value is supposed to be a percentage, and that the default is 100.

I've tried everything from

chart.ValueAxis.TickLabels.Offset = 1


chart.ValueAxis.TickLabels.Offset = 25

to make it move closer, and I even tried

chart.ValueAxis.TickLabels.Offset = 300

to see if I could make it go further out, but nothing is changing. Do I need to set another property in order for this property to be used?



Hi Matt,

Well, TickLabels.Offset is only applied to CategoryAxis labels and not to ValueAxis labels. This behaviour is same with MS Excel. I think you may verify and manually check as you can only set the catergory axis tick labels offset in MS Excel.

Thank you.

Ah, ok, I see that now. Thanks for the reply.