D3 is a data-driven data visualization library, but not a charting library. It contains no predefined chart types, but it helps you apply standards such as SVG and Canvas to create absolutely any chart that you can find in a popular charting library, without being limited in any way.
Classic chart types are created in SVG or Canvas with the d3-shape module; this is а complete library for drawing geometric shapes that are commonly used in data visualizations. This is the module you need if you want to create line charts, area charts, pie and doughnut charts, and radial charts.
Eight shape generators are provided for shapes such as lines, arcs, and areas. They return functions that receive structured data and generate SVG path strings or Canvas path commands, which can be bound to graphical elements in your page. This includes preconfigured symbol...