Mekko chart with Plot

Hi there. I’m trying to draw marimekko chart like this one.

Started from rect mark example with stack transform - Rect Mark / Observable Plot / Observable / Observable

But don’t understand how to add stack rects by y axis too.

Unfortunately I don’t think there’s an easy solution. Here is a custom mark that implements a standard marimekko style chart that could probably be modified to to form you’re looking for: Observable Plot: Marimekko / Observable / Observable

1 Like

Thank you. It’s a bit complicated, but works well.

@kmorozov Just in case, be aware that you can import the functions into your own notebook (instead of copying them over or forking):

import {marimekko, marimekkoMid} from "@observablehq/plot-marimekko"

Ok, thanx!