d3js barchart and tabletop
This example shows the results of the 2014 European Elections in Italy as a bar chart, with each party’s vote percentage labeled above its bar and a red threshold line marking the 4% electoral barrier. It retrieves data from a public Google Sheet using the Tabletop.js library, then renders the chart as SVG with D3.js version 3.5.5. The bars are colored by party via CSS classes, and axes use percentage formatting.
AI-generated descriptionExample of d3js barchart pulling the data from a database baseed in Google Sheets.
This example uses tabletop to retrieve the data from Google Sheets.
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/andreaangeli/'>andreaangeli</a>'s block: <a href='http://bl.ocks.org/andreaangeli/76dd69fb0bd4f498accda43047c0062e'>fresh block</a>
forked from <a href='http://bl.ocks.org/andreaangeli/'>andreaangeli</a>'s block: <a href='http://bl.ocks.org/andreaangeli/57617a4aab17fcdd8be9c804e9025242'>d3js barchart and tabletop</a>