Skip to content

Negative values on Plot.StackedBar

Pre-release
Pre-release

Choose a tag to compare

@jtlan jtlan released this 27 Sep 00:06
· 6520 commits to master since this release

Good afternoon,

Negative values are now supported on Plot.StackedBar. The dataset stacking order is maintained relative to the baseline; that is to say, negative values will be stacked below the 0 baseline in dataset order and positive values are stacked above the 0 baseline in dataset order.

Other new features:

  • The orientation of Labels can now be changed at runtime using the orient() call.
  • Places in the API that accept null as special values now also accept falsey values. For example, if a user wanted to show only horizontal gridlines, they might type:
var gridlines = new Plottable.Component.Gridlines(false, yScale);

See #983 for more details.

Breaking Changes

The width of a vertical Axis and height of a horizontal Axis can no longer be set using the width() and height() calls. To increase the width/height of a vertical/horizontal Axis, the gutter() call is recommended, which sets additional whitespace to be shown between the tick labels and the outer edge of the Axis.