Hi James,
The Subset contains the indexes in which labels will be displayed.
You can simply change the index on which you want the datalabel to be displayed.
You can find an example in the Char explorer samples, check the "Series Attributes" / "Data Labels" sample. Choose "Subset" from the combobox on the right under "mode" and click on "Show at min value" and "Show at max value" to see how the labels get added.
the code behind was something like this:
private void ShowAtMinValue_Click(object sender, System.EventArgs e)
{
m_Bar.DataLabels.Subset.AddIndex(m_Bar.Values.FindMinValue());
m_ChartControl.Refresh();
}
private void ShowAtMaxValue_Click(object sender, System.EventArgs e)
{
m_Bar.DataLabels.Subset.AddIndex(m_Bar.Values.FindMaxValue());
m_ChartControl.Refresh();
}
Best Regards,
Michel Dahdah
Technical Support
Xceed Software inc.