[Spec][Draft] Stepped series (DateSerie, TimeSerie, FloatSerie) #251
Replies: 3 comments 2 replies
-
I've split the value generation (StepValueInterval) and the label generation (StepLabelInterval). For example : That allow user to draw a chart with daily value, but with label draw every 7 days. I think an other update is required to manage monthly label generation (the first of every month for example). I don't know if it's a needed feature. I need some feedback. |
Beta Was this translation helpful? Give feedback.
-
this looks pretty good, I like the direction you're going with this. |
Beta Was this translation helpful? Give feedback.
-
I have a specific use case that would be nice, that I thought I'd mention. We have IoT sensors that are all displayed on a chart. It would also be nice to be able to pinch and zoom on the chart. |
Beta Was this translation helpful? Give feedback.
-
The feature
Be able to declare series for Chart with an auto generation of the labels part, accordingly to a range and step size.
API
[ class abstract BaseChartSerie ]
[class ChartSerie]
Inherit from BaseChartSerie
[class abstract BaseChartEntry]
Generic BaseChartEntry with Typed Label value
[class ChartEntry]
Inherit from BaseChartEntry.
Equivalient of the actual ChartEntry
[class DateTimeChartEntry]
Inherit from BaseChartEntry.
[enum StepDateType]
[class DateSerie]
Inherit from BaseChartSerie
Scenario
All the 'magic' will be made during the first Get of DateSerie.Entries, and the entries will be generated accordingly to the others option of the class.
The same type of class can be applied for TimeSeries, FloatSeries, and others.
With this API Model, no change will be made of the core charts.
Additional context
Feedback required.
Beta Was this translation helpful? Give feedback.
All reactions