Free Support Forum - aspose.com

Category axis in middle of chart

Hello, I am creating a line chart and have a category axis. However, it shows up in the middle of the chart (at value of 0) my values range from -100 to 100 so I would like the category axis to be displayed at the bottom of the chart, under the -100 line. How can I do this?

Thanks.

Hi,

You can set the position of the axis' tick mark labels.Just as following codes :

categoryAxis.setTickLabelPosition(TickLabelPositionType.LOW);