Skip to main content
100%

simple line chart from dataset

✓ Published0🌍 Public
TTanguideCrevoisier
Last edited Nov 15, 2017
Created on Nov 14, 2017

This example shows a simple line chart that plots monthly values across twelve dates, with circles marking each data point and a dashed vertical line appearing on hover. The chart uses D3 v4 with time-series data, parsing dates with `d3.timeParse` and scaling them with `d3.scaleTime` and `d3.scaleLinear`. It renders an SVG path for the line, adds tooltips via circle elements, and includes labels for each month plus the final value. Data comes from a local JSON file, and hover interactions change circle colors and trigger a dynamic guide line.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/855207ac5fb5c170de59b9c69ea56012'>simple line chart from dataset</a>

mit Licensed

Similar vizzes