(no title)
romanr
|
5 years ago
It seems like a very versatile framework, but nowhere I can find any recipe or guide of a very simple case - how to combine different types of charts in one? Like simple line chart overlaying the bar chart. It seems to be only possible by rendering them as completely separate charts and then overlaying one on top of each other in DOM? Which seems hacky.
fourthark|5 years ago
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.
dsdeur|5 years ago
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!
bobbylarrybobby|5 years ago
vosper|5 years ago
mbostock|5 years ago