Autoscale considers new ChartJS format, data reloads onzoom and onpan
This commit is contained in:
@ -14,9 +14,13 @@ Here is a list of what has been done :
|
||||
- Renamed or moved all needed parameters in the ChartJS configuration.
|
||||
- Changed all `xAxes` and `yAxes` references to `x` and `y`.
|
||||
- Adapted `afterBuildTicks` callbacks with the new signature (only `axis` is given)
|
||||
- Changed all references to `ticks.max|min` : these two properties are one step higher, at the level of the axis, not the ticks
|
||||
|
||||
Here is a list of what needs to be done :
|
||||
- Change the implementation of the callback located in `options.scales.x.ticks` at chart creation in the Chart class, so it considers that the label is a timestamp. Reference : https://www.chartjs.org/docs/latest/axes/labelling.html#creating-custom-tick-formats
|
||||
- Labels of the x axis are not displayed in the desired format, and do not rescale properly on zooming/dezooming. There can be too much labels, that make them rotate and invisible.
|
||||
- The cursor now also displays when the click ends, which is not the same behavior as before.
|
||||
- Make the zoom type toggle work again.
|
||||
|
||||
|
||||
**Summary**
|
||||
|
Reference in New Issue
Block a user