Skip to main content

One post tagged with "vega-lite"

View All Tags

How-To: The Stacked Bar Alternative

· 18 min read
Daniel Marsh-Patrick
Program Manager & Developer

I've become smitten with this stacked bar chart alternative, as recently showcased on the Flerlage Twins blog. This article is a brilliant insight into a collaborative process between Sebastine Amede, Darragh Murray and Kevin, with a further spotlight on folks who have inspired their final design. It's a really brilliant way of keeping the part-to-whole idea of a stacked bar chart, while also making the individual segments much easier to compare.

As always, when I see cool things (and because I enjoy using the tooling as well as developing it), I wonder how easy they might be to replicate in Power BI using Deneb. I thought it would be a fun exercise to try and replicate the example from the blog post using Vega-Lite. Fortunately, Vega-Lite has multiple encoding channels along each direction for Cartesian plots, which makes it a fairly straightforward process.