Dear CPTJ,
Many thanks for the information.
Kindly note that there are three series in that
tutorial you mentioned, and every series has six datapoints. So you need to create six datalables for one series, eighteen datalables in total . Then set the custom lable for every lable.
- Code: Select all
//Series 1
ChartDataLabel cd11 = chart.Series[0].DataLabels.Add();
cd11.TextFrame.Paragraphs[0].Text = "series1-custom1";
ChartDataLabel cd12 = chart.Series[0].DataLabels.Add();
cd12.TextFrame.Paragraphs[0].Text = "series1-custom2";
ChartDataLabel cd13 = chart.Series[0].DataLabels.Add();
cd13.TextFrame.Paragraphs[0].Text = "series1-custom3";
...
//Series 2
ChartDataLabel cd21 = chart.Series[1].DataLabels.Add();
cd21.TextFrame.Paragraphs[0].Text = "series2-custom1";
ChartDataLabel cd22 = chart.Series[1].DataLabels.Add();
cd22.TextFrame.Paragraphs[0].Text = "series2-custom2";
ChartDataLabel cd23 = chart.Series[1].DataLabels.Add();
cd23.TextFrame.Paragraphs[0].Text = "series2-custom3";
...
//Series 3
ChartDataLabel cd31 = chart.Series[2].DataLabels.Add();
cd31.TextFrame.Paragraphs[0].Text = "series3-custom1";
ChartDataLabel cd32 = chart.Series[2].DataLabels.Add();
cd32.TextFrame.Paragraphs[0].Text = "series3-custom2";
ChartDataLabel cd33 = chart.Series[2].DataLabels.Add();
cd33.TextFrame.Paragraphs[0].Text = "series3-custom3";
...
If there is still issue, please let me know.
Sincerely,
Betsy
E-iceblue support team