Hacker News new | ask | show | jobs
by ruleabidinguser 3283 days ago
What makes D3 more flexible?
1 comments

Vega is built on D3. It's just operating at a higher level. It's like C++ vs Python. You can do anything in C++ you can do in Python, but it may take a lot more work.
This may be a bit confusing but Vega only uses some D3 helpers, it does not generate D3 code at any point. See https://vega.github.io/vega/about/vega-and-d3/ for details.

But you high-level point is accurate, D3 is more expressive since you can use all of JavaScript.