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
It's really unclear that series is cleared in DataLayer, the palette filled in DataLayer (_setNewPoints) but the data set to series in ChartApi. I suppose to refactor it in future releases. There is several key points:
If we clear timescale, should we clear all series as well (see ChartApi::updateTimeScale) ? I guess yes.
We don't need to modify or clear existent series' data (including palette) in DataLayer at all, because ChartApi is the guy who sends updates to chart's parts (series, timescale, etc) and the only it should do it.
In addition to previous point - I think DataLayer should prepare a bit more complex timescaleUpdate without modifying anything outside of its own data/props.
- Removed series clearing/modification from DataLayer - now it's responsibility is the only generate data updates
- DataLayer now generates baseIndex for timescale so we don't need to calculate it manually in chart model
- Removed Palette class, now we provide a color inside PlotRow (and any additional data for a bar)
- PlotRow is not generic now, if you'd like to add properties to it - just extend it
- PlotRow's value now contains the only 4 items (open, high, low, close), and they are always numbers
- Removed supporting empty values in PlotList
- Removed redundant each method from PlotList
- Refactored TickMarks algorithm
- Time scale points now contains time and time weight
Fixes#355#270
It's really unclear that series is cleared in
DataLayer
, the palette filled inDataLayer
(_setNewPoints
) but the data set to series inChartApi
. I suppose to refactor it in future releases. There is several key points:ChartApi::updateTimeScale
) ? I guess yes.DataLayer
at all, becauseChartApi
is the guy who sends updates to chart's parts (series, timescale, etc) and the only it should do it.DataLayer
should prepare a bit more complex timescaleUpdate without modifying anything outside of its own data/props.Originally posted by @timocov in #269 (comment)
The text was updated successfully, but these errors were encountered: