by romanr · 6y ago · 0 comments
So yeah at the D3 level you would just draw one chart and then draw another chart on top, probably each wrapped in a <g> if you’re using SVG. Maybe they’d share X/Y scales.
You can use that same scale to draw just one set of axis.
Need multiple Y axis? Create two Y scales with the same range, one X scale.
Also I think it's good to understand that "chart" is not really a concept in D3. You just get all the elements of a chart which is why it is so awesome as you get to compose your own chart just the way you like it!