Skip to main content
100%

simple line chart from dataset

✓ Published0🌍 Public
NNaram22
Last edited Nov 17, 2016
Created on Nov 17, 2016

This example shows a simple line chart of monthly values from a small dataset, with points labeled by month and the most recent value highlighted numerically. The chart is built with D3 v3, using an ordinal x-scale for the named data points and a linear y-scale for values, rendered as an SVG path, circles, and text. Hovering a circle turns it red, enlarges it, shows the value directly, and draws a dashed guide line; moving the mouse away reverts these changes and removes the temporary elements. The data is loaded from a JSON file via `d3.json`.

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

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

forked from <a href='http://bl.ocks.org/Naram22/'>Naram22</a>'s block: <a href='http://bl.ocks.org/Naram22/9ca1614031a9129da73cc86fa018b519'>simple line chart from dataset</a>

mit Licensed

Similar vizzes