void CBCGPChartVisualObject::SetDataPointLegendLabelText | ( | const CString & | strText, |
int | nDataPointIndex, | ||
int | nSeriesIndex = 0 |
||
) |
Sets custom legend label text for the specified data point.
Also you have to enable displaying data points in the legend (for some chart types like Pie it's enabled automatically):
Of course, the series also must be included in the legend: