Hello,
I am trying to make a legend for a graph with some complex data.
Here is an example of how my data is structured:
- Data Set #1
- Series A
- Series B
- Series C
- Data Set #2
- Series A
- Series B
- Series C
- Data Set #3
- Series A
- Series B
- Series C
By default, SciChartLegend will display 9 entries in the above example, one for every series. However, with many datasets, and more series per dataset, this quickly becomes extremely cumbersome.
What I’d like to do is show 6 items in the legend: a checkbox for each Data Set, and a checkbox for each Series Type.
If the user clicks the Data Set #1 check box => Data Set #1 Series A, Data Set #1 Series B, and Data Set #1 Series C are all shown/hidden.
If the user clicks the Series A check box => Data Set #1 Series A, Data Set #2 Series A, and Data Set #3 Series A are all shown/hidden.
This does not seem to cooperate with the native SciChartLegend, which views all the Data Series as a single flat list. My data is in more of a tree structure.
Do you have any recommendations on how to proceed? I think I will need to make a new UserControl derived from ChartDataObjectBase to replace the SciChartLegend control.
Any help greatly appreciated.
Thank you,
Kurt
- Kurt Madland asked 11 months ago
- last active 10 months ago