Releases: leeoniya/uPlot
Releases · leeoniya/uPlot
1.6.2
series.isGapis gone anduPlot.join()now returns the data array directly, withundefinedoccupying the value locations of alignment artifacts. as a result,.join()internals have been optimized/simplified for a 2-3x speedup.- callback signatures for
axis.stroke,axis.grid.stroke,axis.ticks.stroke - no more defaulting to
blackwhenseries.strokeis absent. this helps fill-only series. - some more robustness to early-exit before trying to draw will empty stroke, empty fill or empty paths.
1.6.1
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.bandswith 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. a580c73#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.capnow 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
alignoption added to bars path-builder, should be helpful for histogramslegend.width&legend.dashoptions- auto-init scales referenced by axes. (#418)
- don't transform arrow functions (#423)
1.5.2
1.5.1
- fixes to
uPlot.join()data alignment & null-filling of gaps
1.5.0
- [BREAKING]
opts.gutters: {x,y}->opts.padding: [top,rgt,btm,lft](#392) - allow drawing axes & grid over series via
opts.drawOrder: ["axes", "series"](#386) - extract & modularize all path-building code. linear, stepped, spline & bars path-builders are now in the core. (https://leeoniya.github.io/uPlot/demos/line-paths.html)
- don't crash with log scales & data values <= 0; draw them as 1 magnitude below
scale.min. uPlot.join()util for null-filling and merging unaligned data from different sources. (similar to SQL's outer join)- fix for defining stroke or fill as canvas gradient or canvas pattern objects
1.4.7
1.4.6
- typings stuff
1.4.5
1.4.4
- typings (const enums)