A Grab Bag of New Features
Pre-release
Pre-release
Good afternoon,
We've got a whole bunch of new features for you this time:
- Missing values / mismatched values on
StackedBar
andClusteredBar
: Previously,StackedBar
andClusteredBar
only supported datasets with exactly identical sets of domain values. Now, missing values are handled gracefully:
- The rotation angle of tick labels on
Axis.Category
can now be set withtickLabelAngle(angle)
. Currently only 0° (horizontal), -90° (vertical-left), and 90° (vertical-right) are supported. Currently, the text-wrapping algorithm may aggressively wrap or truncate rotated labels; we're working on improving the layout engine logic to properly account for this case. In the meantime, thegutter()
method can be used to allocate more space for the tick labels.
undefined
andNaN
values will now be skipped onPlot.Line
andPlot.Area
. A gap will be drawn instead:
- The total animation duration on
Animator.IterativeDelay
can be set withmaxTotalDuration(maxDuration)
(defaults to 600ms). If the total time to run the animation exceedsmaxTotalDuration()
, the delay between successive animations is shortened so the animation runs in the specifiedmaxDuration
.
Also, there are some
Breaking Changes
Label.orient
no longer acceptsvertical-right/vertical-left
. Accepted values arehorizontal/left/right
.Animator.IterativeDelay.iterativeDelay
has been renamed toAnimator.IterativeDelay.maxIterativeDelay
.
Upcoming Changes
Currently, the API for StackedBar
, ClusteredBar
, and StackedArea
are different from those of other Plot
s. In the interest of having a consistent API, we will be moving all Plot
s to the new API soon. This change will allow us to add in additional features; for example, adding multiple datasets to a Plot.Line
will automatically draw each one as a separate line with a different color. We expect to implement this API change in the next version, v0.33.0.