4 ms·
You see these things because d3 is fairly low level. If I just have some data and want a bar chart, I basically want to pass the data to "BarChart", with some
by jonahx 11y ago
You see these things because d3 is fairly low level. If I just have some data and want a bar chart, I basically want to pass the data to "BarChart", with some possible configuration options.
You can't do this with raw d3. With d3, you are responsible for drawing and spacing your bars, creating your axes, etc.
This is intentional, of course. d3 aims to give a set of building blocks that you can be used to create any possible visualization you can think of. It's not aiming to be a high-level graphing library with a limited set of pre-built graphs. But those libraries fill a perfectly valid need as well.
- IE6 11y agoBasically this - we opted for google charts rather than d3 for a few projects because we wanted to keep the investment low and essentially all we wanted was barChart() pieChart() methods that we pass data into. Yes we could have built it once and reused but the uglier google chart was already there.
- sdegutis 11y agoThat's a good point, and in fact I may look into Google Charts once more. Thanks for the perspective.