Skip to main content
100%

Bullet Chart with automatic updating v5

✓ Published0🌍 Public
Dd3noob
Last edited Dec 1, 2019
Created on Nov 30, 2019

This example shows two bullet charts comparing CPU load and memory usage, with ranges, measures, and markers that update automatically. Using a custom `d3.bullet` function built on D3 v5, the charts pull data from a JSON file and render as SVG. Every three seconds, a `setInterval` triggers a randomized data update, which is animated over one second using D3’s `transition` and `duration` methods, smoothly transitioning the measure and marker positions along the linear scale.

AI-generated description

This is a simple example of a bullet chart derived from Mike Bostock's example and updated to work with d3.js v5

The code for the bullet.js script was parsed from Martin Meier's v4 code here.

This version updates automatically from a randomised source.

mit Licensed

Similar vizzes