Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
DDarioCel
Last edited Jun 9, 2018
Created on Jun 9, 2018

This example shows a simple bar chart with a tooltip displaying each bar’s label and value on hover. The chart is rendered as SVG using D3 v3, with an ordinal x-axis and linear y-axis. Bars are filled from a custom color palette, and a mouseover event triggers a tooltip whose position follows the cursor. The data is hardcoded in the page as an array of label–value pairs.

AI-generated description

Simple Bar Chart with Tooltip

forked from <a href='http://bl.ocks.org/arpitnarechania/'>arpitnarechania</a>'s block: <a href='http://bl.ocks.org/arpitnarechania/e620a4cb1e14e41f6607aefd0d4e22d4'>Bar Chart</a>

mit Licensed

Similar vizzes