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

Free Support Forum - aspose.com

Position of the Value axis title

I am using aspose cells for java. below is the code snippet to display series in reverse order


chart.setShowLegend(false);
// chart.setShowLegend(false);
Axis categoryAxis = chart.getCategoryAxis();
categoryAxis.getTitle().setText(“XXXX”);
Axis valueAxis = chart.getValueAxis();
valueAxis.getTitle().setText(“Dollars”);

		categoryAxis.getTitle().setRotationAngle(90);
		valueAxis.getTitle().setRotationAngle(0);
		chart.getPlotArea().getArea().getFillFormat().setFillType(FillType.NONE);
		chart.getValueAxis().setMinValue(0);
		chart.getValueAxis().setMinorUnit(1);


		**chart.getCategoryAxis().setPlotOrderReversed(true);**

** chart.getValueAxis().setTickLabelPosition(TickLabelPositionType.HIGH);**

chart.getValueAxis().getTitle().setPositionAuto();

This is displaying what i needed, but the Value axis title is displaying on top of the Plot area.
Is there a way to move the Value Axis title to bottom?

Thanks.
Ravi

@ravireddya,

Thanks for the sample code segment.

Could you provide us output file (containing the chart) by Aspose.Cells APIs. Also provide a sample file containing your desired chart (with value axis title at your desired position), you may create/update the chart in MS Excel manually and save the file to attach it here (please zip the file prior attaching here), we will check on how to do it via Aspose.Cells APIs.

Hi Email sent on this with sample code and files requested

@ravireddya,

To which address the email is sent? Please upload the data here in thread for our analysis.

@ahsaniqbalsidiqui Sent them in a private message to you. Thanks

@ravireddya,

I have reviewed your code and observed lot of missing references and arguments. Could you please simplify the code and provide us a runnable console application which can be executed here without any error to observe the problem and provide assistance accordingly?