Skip to main content
100%

d3js

✓ Published0🌍 Public
Aaaizemberg
Last edited Aug 28, 2019
Created on Aug 27, 2019

This example displays earnings data for three gaming platforms using D3 v5. It renders the dataset as a simple bar chart, where each bar’s width corresponds to the earnings value divided by 3000, and text labels show the platform name. The code uses `d3.select` and `data().enter().append()` to bind the array of objects to both paragraphs and divs, with a `toLocaleString()` format for currency values. The bars are styled with steelblue backgrounds, and a tooltip title attribute reveals the earnings in US dollars.

AI-generated description

Similar vizzes