D3 is a data visualization library (not a chart library like plotly.js or Vega-Lite).
D3 maintains a mapping between your data and graphic elements.
Can use SVG (Scalable Vector Graphics). Or, canvas (raster-based, faster for many elements).
Editable examples: http://blockbuilder.org/
Good colours: http://colorbrewer2.org/
Star chart with subtle colour and twinkling: www.bit.ly/217O2C5