Chart Title Position

Hi,

Could you please advise how to set the graph title nearby the axis lines? I tried by using below lines but while opening the excel file it throws some error.

chart.getCategoryAxis().getTitle().setText("Sales Efficiency");

chart.getCategoryAxis().getTitle().getFont().setBold(true);

chart.getCategoryAxis().getTitle().getFont().setSize(13);

chart.getValueXAxis().getFont().setBold(true);

chart.getValueXAxis().getFont().setSize(13);

chart.getCategoryAxis().getTitle().setTextHorizontalAlignment(

TextAlignmentType.CENTER);

chart.getCategoryAxis().getTitle().setTextVerticalAlignment(

TextAlignmentType.CENTER);

chart.getCategoryAxis().getTitle().setX(10);

chart.getCategoryAxis().getTitle().setY(10);

I created a scatter charr with width as 700 and height as 700 pixels. I am using Aspose.cell 2.2 version. Please provide your help on this.

Thanks,

Dinesh

Hi,

Please try the latest version:
Aspose.Cells for Java v7.0.2.5

If the problem persists, then please provide us your sample source xls/xlsx file which is not opening.

And also provide us your expected xls/xlsx file which you can create manually using Ms-Excel.

Please also use all the additional required java libraries needed by this version.

<a href="">Additional Java Libraries For V7.0.2 and Later</a>