Skip to main content
100%

Projet_DataViz_Histogramme

✓ Published0🌍 Public
KKylaste
Last edited Dec 29, 2017
Created on Dec 21, 2017

This example shows the monthly regularity of TGV trains on French routes, displayed as a bar chart of the number of delayed trains per month. It begins by filtering a CSV of train records (tgv_annees.csv) to a selected origin–destination pair and year, then renders the resulting monthly counts as labeled bars using SVG. The visualization is built with D3 v4, using `d3.csv` for loading, `d3.scaleLinear` and `d3.scaleBand` for axes, and `d3.axisBottom` for the month labels. The code follows a reusable chart module pattern, with the main chart logic in `histogram-chart.js`.

AI-generated description

This example is out-of-date; I prefer this newer histogram example that places the tick marks between bars. However, the implementation still stands as an example of the reusable chart module pattern.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1933560'>Histogram Chart</a>

gpl-3.0 Licensed

Similar vizzes