Posted 5 May 2023, 4:43 am EST
Hi Amit,
You can populate all the legends in a combobox by accessing each element of C1Chart.ChartGroups[0].ChartData’s SeriesList property. You can refer to the following code snippet for the same:
var seriesCollection = c1Chart1.ChartGroups[0].ChartData.SeriesList;
comboBox1.Items.Clear();
if (seriesCollection != null)
{
for(int i=0; i<seriesCollection.Count; i++)
{
comboBox1.Items.Add(seriesCollection[i]);
}
}
> Can you share an example without using Database connections. I cannot run the solution.
Taking into account the above requirement, we have created an updated version of the sample application where user can display a particular series selected in a combobox. Please refer C1ChartHideSeriesObj.zip
Hope this helps. Please let us know if you have any further issues.
Thanks & Regards,
Aastha