This post describes how to build a very basic area chart with d3.js. Only one time series is represented, to simplify the code as much as possible. You can see many other examples in the area chart section of the gallery. Learn more about the theory of boxplots in data-to-viz.com. This example works with d3.js v4
and v6
div
that will be modified by d3 later on.svg
area. It specify the chart size and its margin. Read more.path
to the plot, and using the d3.area()
helper function. See here to learn more about this kind of function.