Skip to content

A Grab Bag of New Features

Pre-release
Pre-release
Compare
Choose a tag to compare
@jtlan jtlan released this 03 Oct 22:10
· 6437 commits to master since this release

Good afternoon,

We've got a whole bunch of new features for you this time:

  • Missing values / mismatched values on StackedBar and ClusteredBar: Previously, StackedBar and ClusteredBar only supported datasets with exactly identical sets of domain values. Now, missing values are handled gracefully:
    screen shot 2014-09-30 at 4 21 11 pm
    screen shot 2014-10-03 at 11 08 06 am
  • The rotation angle of tick labels on Axis.Category can now be set with tickLabelAngle(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, the gutter() method can be used to allocate more space for the tick labels.
    screen shot 2014-10-03 at 2 51 45 pm
  • undefined and NaN values will now be skipped on Plot.Line and Plot.Area. A gap will be drawn instead:
    screen shot 2014-10-02 at 6 21 40 pm
  • The total animation duration on Animator.IterativeDelay can be set with maxTotalDuration(maxDuration) (defaults to 600ms). If the total time to run the animation exceeds maxTotalDuration(), the delay between successive animations is shortened so the animation runs in the specified maxDuration.

Also, there are some

Breaking Changes

  • Label.orient no longer accepts vertical-right/vertical-left. Accepted values are horizontal/left/right.
  • Animator.IterativeDelay.iterativeDelay has been renamed to Animator.IterativeDelay.maxIterativeDelay.

Upcoming Changes

Currently, the API for StackedBar, ClusteredBar, and StackedArea are different from those of other Plots. In the interest of having a consistent API, we will be moving all Plots 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.