Skip to main content
100%

simple line chart from dataset

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

This example visualizes a simple time series with a line chart, plotting monthly values from a small JSON dataset between January and July 2016. The SVG rendering uses d3.scaleTime and d3.scaleLinear to map dates and numeric values, while d3.line constructs the black stroked path. Each data point is marked by a semi-transparent grey circle that turns red on mouseover, triggering a dashed vertical guideline and a text label showing the exact value via d3.select and appended SVG elements. The chart also displays a permanent value label for the final data point at the right edge.

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