You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More dynamic usage of CollectionIndexes for SeriesDescriptors could add some flexibility to dynamic Chart creation. In my current fork of the repo, I have the CollectionIndex property functioning as a range start point:
A SeriesDescriptor with a CollectionIndex of 2 will effect every Series style from index 2 on, up until the next CollectionIndex on a new SeriesDescriptor.
API Changes
Potential API Changes:
Functionality change to ChartSeriesProvider.GetDescriptor to switch to ranges
Addition of SeriesDescriptor.RangeIndex property to describe range behavior separate from existing CollectionIndex behavior
Intended use case would be for adding a dynamic number of series to a chart that could all have different styles. Range support would allow you to "section off" portions of your ObservableCollection and DataBind to indexes to keep the chart dynamically updating.
Another potential change would be to change the SeriesProvider to allow multiple ObservableCollections, where each Collection represents a unique styling,but this change looks considerably less practical given current architecture.
The text was updated successfully, but these errors were encountered:
Summary
More dynamic usage of CollectionIndexes for SeriesDescriptors could add some flexibility to dynamic Chart creation. In my current fork of the repo, I have the CollectionIndex property functioning as a range start point:
A SeriesDescriptor with a CollectionIndex of 2 will effect every Series style from index 2 on, up until the next CollectionIndex on a new SeriesDescriptor.
API Changes
Potential API Changes:
ChartSeriesProvider.GetDescriptor
to switch to rangesSeriesDescriptor.RangeIndex
property to describe range behavior separate from existing CollectionIndex behaviorMy current hacky implementation of
ChartSeriesProvider.GetDescriptor
for ranges:Getting a max descriptor index implementation
Intended Use Case
Intended use case would be for adding a dynamic number of series to a chart that could all have different styles. Range support would allow you to "section off" portions of your ObservableCollection and DataBind to indexes to keep the chart dynamically updating.
Another potential change would be to change the SeriesProvider to allow multiple ObservableCollections, where each Collection represents a unique styling,but this change looks considerably less practical given current architecture.
The text was updated successfully, but these errors were encountered: