3 ms·
You could start by rendering static images in SVG as a first step? Vega https://vega.github.io/vega/ https://vega.github.io/vega/ or vega-lite https://vega.git
by GlennS 8y ago
You could start by rendering static images in SVG as a first step?
Vega https://vega.github.io/vega/ https://vega.github.io/vega/ or vega-lite https://vega.github.io/vega-lite/examples/ https://vega.github.io/vega-lite/examples/ might also be good intermediate step.
Those are based on writing a declarative description of the chart(s) you want in a domain specific languag. They will be less flexible than d3, but should make it simpler to get good results as long as you don't want anything too custom.
Disclaimer: I haven't used them myself, but they are from the same university research group that Mike Bostock (d3 author) used to be in, and I have seen him plugging them.
You will likely find any of these approaches quite different to matplotlib. Hopefully in a good way.
Despite having suggested these alternatives, I would actually strongly recommend learning d3. It's really good.
- edwinyzh 8y agoThanks, I like how simple and concise the declarative code is!