Free Support Forum - aspose.com

Issue setting data on Scatter chart

Hi,

I am working on Scatter chart with data lines. Please find the sample attached.
/bin/debug file contains Test_template.xls, wherein two charts are displayed. I need to set data on the second chart programmatically so that it looks like Chart1.
But here whenever I try to add XValues and YValues, it creates one more additional series and setting the data incorrectly.
So I tried setting the series as "," separated data points. In that case it sets data but I am not able to set DataLabels on Chart2 exactly same a Chart1. For example:
If Y data values set like=> "=Graphs!$F$8:$G$8"
it doesn't work
but if set like "=Graphs!$F$8,Graphs!$G$8"
this works. I can use this way but in this case too I am not able to set DataLabels as desired.
Please look at the sample application I attached and let me know ASAP.


Thanks & Regards
Devendra

Hi,

There are some issues in your application you provided, please see the attached updated source .cs file.

Thank you.

Hi Amjad,

Thanks for the details. I got your point, we need to set datalabels of the individual points of the DataSeries. I was not able to find that where do I need to set these properties because if I set to the DataLables property of DataSeries then it was applied to the whole series.

Thank you so much.

Regards
Devendra