Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
XYDataPoint.Label doesn't work
posted

I am creating a set of XYDataPoints and adding them to a series. But when the chart is displayed, the values I have assigned don't display.

I create the points like this:

 XYDataPoint point = new XYDataPoint(xValue, yValue, labelValue, false);

 And I create the label like this:

//display labels for series data points

ChartTextAppearance dataLabels = new ChartTextAppearance();dataLabels.Visible = true;

dataLabels.Row = chart.ScatterChart.ChartText.Count;

dataLabels.ItemFormatString = "<ITEM_LABEL>";

//apply data labels

chart.ScatterChart.ChartText.Add(dataLabels);

But when the labels display they display the literal "<ITEM_LABEL>"

Parents
No Data
Reply Children
No Data