Skip to main content
100%

simple line chart from dataset

✓ Published0🌍 Public
NNpfn
Last edited Nov 23, 2017
Created on Nov 23, 2017

A simple line chart renders twelve monthly data points from a local JSON dataset, plotting values over time. The SVG visualization uses D3 v4’s `d3.scaleTime`, `d3.scaleLinear`, and `d3.line` to draw the black line, with light gray circles for each point. Hovering over a circle triggers `handleMouseOver` and `handleMouseOut`, turning the circle red, displaying its value as text, and adding a dashed vertical guide line. The chart also labels each month along the bottom and shows the last value prominently on the right.

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/Npfn/'>Npfn</a>'s block: <a href='http://bl.ocks.org/Npfn/e3bf79bfda9e3085997123ecf032d570'>simple line chart from dataset</a>

mit Licensed

Similar vizzes