Skip to content

Unified Plot.Bar, StackedPlot dataset update

Pre-release
Pre-release

Choose a tag to compare

@jtlan jtlan released this 20 Jan 16:33
· 5041 commits to master since this release

Good morning,

This release includes a bugfix for stacked Plots (StackedArea, StackedBar), as well as the removal of Plot.VerticalBar and Plot.HorizontalBar from the API.

Bugfixes

Scales on stacked Plots now update correctly when Datasets are updated (#1246).

API Breaks

Plot.VerticalBar and Plot.HorizontalBar have been removed from the codebase, as warned in the release notes for v0.40.0. Please use Plot.Bar from this point forward.

Upgrade Instructions

As noted in the previous release, you will need to change references to Plot.VerticalBar and Plot.HorizontalBar as follows:

new Plot.VerticalBar(xScale, yScale) → new Plot.Bar(xScale, yScale, true)
new Plot.HorizontalBar(xScale, yScale) → new Plot.Bar(xScale, yScale, false)

In addition, invocations of barAlignment() on Plot.HorizontalBar also should be updated:

horizontalBarPlot.barAlignment("top") → barPlot.barAlignment("left")
horizontalBarPlot.barAlignment("bottom") → barPlot.barAlignment("right")