Skip to content

1.6.0

Compare
Choose a tag to compare
@leeoniya leeoniya released this 13 Jan 07:26
· 545 commits to master since this release

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. 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.cap now set ctx.lineCap, which can be useful in combination with dash, 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)