Skip to main content
100%

Bullet Charts

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 9, 2017
Created on Mar 9, 2017

Five bullet charts compare quantitative measures against qualitative background ranges and marker lines, with titles and subtitles for revenue, profit, order size, new customers, and satisfaction. An update button triggers a transition that randomizes the values over one second, animating the bars, markers, and tick labels. Built with d3.v3, the example uses a custom `d3.bullet` function, SVG rects and lines, and `d3.scale.linear` scales with `.transition().duration()` to smoothly update positions and widths. Data comes from a static `bullets.json` file.

AI-generated description

Designed by Stephen Few, a bullet chart “provides a rich display of data in a small space.” A variation on a bar chart, bullet charts compare a given quantitative measure (such as profit or revenue) against qualitative ranges (e.g., poor, satisfactory, good) and related markers (e.g., the same measure a year ago). Layout inspired by Stephen Few. Implementation based on work by Clint Ivy, Jamie Love of N-Squared Software and Jason Davies. The "update" button randomizes the values slightly to demonstrate transitions.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4061961'>Bullet Charts</a>

forked from <a href='http://bl.ocks.org/kristin-henry-sf/'>kristin-henry-sf</a>'s block: <a href='http://bl.ocks.org/kristin-henry-sf/c61e161cea375cd9d80090fe2feb7aeb'>Bullet Charts</a>

gpl-3.0 Licensed

Similar vizzes