Skip to main content
100%

simple line chart from dataset

✓ Published0🌍 Public
RRomainCandy
Last edited Nov 10, 2017
Created on Nov 10, 2017

This example shows a simple line chart drawn from a small dataset of monthly values, with category labels placed below the x-axis and the final value highlighted in larger text beside the line. The chart uses an SVG rendering with d3.v4, employing d3.scaleTime for the x-axis, d3.scaleLinear for the y-axis, and d3.line to generate the path. Data is loaded asynchronously from a JSON file via d3.json, with dates parsed using d3.timeParse and formatted for display with d3.timeFormat.

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