Releases: leeoniya/uPlot
Releases · leeoniya/uPlot
1.4.2
- typings stuff
1.4.1
- typings stuff
1.4.0
1.3.0
series.points.space
for density control (#326) (https://leeoniya.github.io/uPlot/demos/points.html)cursor.bind
event listener proxies for tweaking interaction behavior (#298) (https://leeoniya.github.io/uPlot/demos/cursor-bind.html)- draggable range selector demo with resize grips (https://leeoniya.github.io/uPlot/demos/zoom-ranger-grips.html)
axis.values
can now be an fmtDate template string, similar toseries.value
(#339)axis.align
for values (#345)- softMin/softMax support for
scale.range
(#328) (https://leeoniya.github.io/uPlot/demos/soft-minmax.html) scale.auto
can be function for on-demand auto-ranging control. (#343)- new
self.status
now available to all callbacks rather aready
arg to only some hooks. - new
series.isGap(self, seriesIdx, dataIdx)
to allow differentiation between data-alignmentnull
s and "gap"null
s (https://leeoniya.github.io/uPlot/demos/path-gap-clip.html) axis.size
can be a callback to allow dynamic axis sizing (https://leeoniya.github.io/uPlot/demos/axis-autosize.html)- axes will now auto-toggle and chart will resize to take up available space when all series on that scale are toggled off.
- rename
u.cursor.locked
->u.cursor._lock
- some changes to default range behavior with data containing 1 point or no data.
- various other fixes & typings
1.2.2
1.2.1
- fix ESM build. (#307)
- decouple axis splits filtering from splits formatting (add
axis.filter()
,axis.grid.filter()
,axis.ticks.filter()
). (#305) - fix
series.fill
for log scales trying to fill to non-existent 0. (#306) - log base 2 support as
axis.log: 10 | 2
(#304): https://leeoniya.github.io/uPlot/demos/log-scales2.html - fix rounding errors in
rangeLog()
which threw an infinite loop for values < 1e-3 - some internal cleanup and optimizations
1.2.0
- [BREAKING] expansion and improvement of the temporal
axis.values
config array. (see #303, #299, 9c56102) - fix a long-standing bug where series hover points were cut off at plot edges (#301)
{select: {over: true}}
ability to choose whether.u-select
is placed inside.u-over
as previously, or.u-under
. this is now relevant since.u-over
is no longeroverflow: hidden
and it's possible for a programatically-set selection inside.u-over
to visually overflow the plot bounds (a consequence of fixing #301)series.auto: false
can be used to exclude a series' data from being considered when auto-ranging its y scale- a bunch of fixes for plots with no datapoints, or single datapoint
- new demo: https://leeoniya.github.io/uPlot/demos/y-shifted-series.html
- much-improved line-smoothing demo using Centripetal Catmull-Rom Spline algo
1.1.2
- fix: DST rollover periods were dropping axis splits when zoomed in to <= 1hr resolutions
- fix: more accurate floating point math when generating axis splits with decimals.
- fix: regression caused by precision increase and add more guards against infinite loops.
- fix-demo:
tooltips-closest
failed to toggle tooltip display on plot re-entry. - fix-demo:
tooltips-closest
was drawinginterpolated
markers outside plotting area when zoomed in.
1.1.1
- new:
series.fillTo()
API to adjust the area-fill baseline (instead of always 0) - new:
cursor.move
callback to refine or snap cursor position - new:
legend.live: false
option to disable live cursor values (static legend) - fix: force update legend for setData() calls, even when cursor.idx is unchanged
- fix: also defocus hovered points when defocusing inactive series
- fix: typings & demos
1.1.0
- new: logarithmic scales (via
scale.distr: 3
) - new:
uPlot.rangeLog()
anduPlot.fmtNum()
util funcs - new:
cursor.dataIdx
can now transform the hovered idx to a different data idx used for legend display and cursor hover points - chg: all CSS classes are now prefixed with
u-
. also, some legend classes got better names - chg: axis functions now receive
axisIdx
as an argument - chg:
axis.split
option renamed toaxis.splits
- fix: saner & more consistent scale padding (ranging) behavior
- demo: log scales
- demo: stepped-line
- demo: wheel-drag x-panning
- demo: latency heatmap
- demo: box & whisker plot
- demo: nearest non-null hover
- various minor perf tweaks and typings fixes