Hi Mudassir,
Thanks a lot for providing me the solution.
Now I am struck up with two issues mentioned below while displaying charts in slides.
1.How Can I display legends below the chart ?
2.How to display all data labels in a chart ? I tried achieving with below mentioned piece of code.
//Set the DataLabels in the chart
DataLabels datalabels;
for (int i = 0; i < chart.getNSeries().getCount(); i++)
{
datalabels = chart.getNSeries().get(i).getDataLabels();
//Set the position of DataLabels
datalabels.setPosition(LabelPositionType.INSIDE_BASE);
//Show the category name in the DataLabels
datalabels.setCategoryNameShown(true);
//Show the value in the DataLabels
datalabels.setValueShown(true);
//Not show the percentage in the DataLabels
datalabels.setPercentageShown(false);
//Not show the legend key.
datalabels.setLegendKeyShown(false);
}
Methods like getNSeries,getCount are not acessible for me.
Kindly let me know how to achieve these functionalities.
For your reference ,I am attaching code containing these two issues.