Skip to main content
100%

simple line chart from dataset

✓ Published0🌍 Public
RRade-Mathis
Last edited Nov 9, 2017
Created on Nov 9, 2017

This example displays a simple line chart of seven data points, each with a name, value, and date. The chart shows the trend of values over time from January to July 2016, with a line connecting the points and a label for the final value. It is rendered as an SVG using D3 v4, employing `d3.scaleTime` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.line` for the path. The data is loaded from a local JSON file. Interactive tooltips appear on mouseover, using D3 selections to highlight the point and display its value.

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>

By RadeMathis, for the <a href='master-info.univ-lyon1.fr'>University of Lyon 1 </a> Rendu du <a href='https://lyondataviz.github.io/teaching/lyon1-m2/2017/tp2.html'>TP2</a> de <a href='https://lyondataviz.github.io/teaching/lyon1-m2/2017/'>DataViz</a>

Ce code est en partie (la partie de la cration de l'infobulle) emprunte à <a href='https://bl.ocks.org/mbostock/1087001'>cet exemple</a> de <a href='https://github.com/mbostock'>Mike Bostock</a>

wtfpl2.0 Licensed

Similar vizzes