Skip to main content
100%

simple line chart from dataset

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

A simple SVG line chart displays seven monthly data points from a local JSON dataset, plotting date against value. The D3 v4 code uses `d3.scaleTime` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.line` to generate the path. Circles mark each point, with hover effects changing their color to red and showing the same value label already displayed above each dot. The final value appears in larger text at the line’s end, while month labels sit below the chart.

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>

forked from <a href='http://bl.ocks.org/ElisaDnr/'>ElisaDnr</a>'s block: <a href='http://bl.ocks.org/ElisaDnr/514b915c451927e80633439f26ff1821'>simple line chart from dataset</a>

forked from <a href='http://bl.ocks.org/ElisaDnr/'>ElisaDnr</a>'s block: <a href='http://bl.ocks.org/ElisaDnr/918ee45c85be63570c01e3129de3ed7d'>simple line chart from dataset</a>

mit Licensed

Similar vizzes