1.6.0
版本发布时间: 2021-01-13 15:26:11
leeoniya/uPlot最新发布版本:1.6.30(2024-01-30 04:41:47)
https://github.com/leeoniya/uPlot/compare/1.5.2...1.6.0
- [BREAKING] the way bands work has changed to be faster, more robust and more flexible. series no longer need to be adjacent, and band definitions are now specified independently of the series, in
opts.bands
with series indices. this opens up cool cases like filling between arbitrary series: https://leeoniya.github.io/uPlot/demos/high-low-bands.html, and as a result can now be used for implementing real stacking: https://leeoniya.github.io/uPlot/demos/stacked-series.html. the changes required to existing code should be purely mechanical: e.g. https://github.com/leeoniya/uPlot/commit/a580c7335ec469f6cc606ac831b19f187687a628#diff-9f8a6f3548684930b1691146303ca078d99c6a21c715b574e56fe6abaf0257f0 - full support for chart rotation (scale direction and orientation control). https://leeoniya.github.io/uPlot/demos/scales-dir-ori.html
- new
uPlot.orient()
util fn to help with grabbing the properly-oriented scales, data arrays and drawing fns -
series.cap
,series.points.cap
,axis.grid.cap
,axis.ticks.cap
now setctx.lineCap
, which can be useful in combination withdash
, to create a dotted-round line path style. - hz bars demo, with a tiny/fast quad-tree implementation for hit-testing & hover detection
-
align
option added to bars path-builder, should be helpful for histograms -
legend.width
&legend.dash
options - auto-init scales referenced by axes. (#418)
- don't transform arrow functions (#423)