🌍 Public
My bar chart
This bar chart visualizes the distribution of traveler counts across four travel classes: Economy, Business, First Class, and Private, with values of 100, 50, 20, and 3 respectively. The chart uses Chart.js version 2.9.4 and renders to an HTML canvas element. The data is hardcoded as arrays in the script, with the chart configured to display a title describing the dataset as "World Wine Production 2018," though the labels suggest travel categories. The legend is hidden, and the chart is styled responsively with a maximum width of 600 pixels.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed


![[A2] Revenue by Class (Bar Chart)](/viz/9e6169c75d3841eab31b5e2de0d54af5/social-image.png?v=ee9ed86398bf487090a6cf7d6af6553b)



![A2 - Revenue by Class [Bar Chart]](/viz/38cd5ff7569d4f60a33ef4b36b7d4844/social-image.png?v=d961f1b1acb9422aa921a63dc5f43072)

Comments
Sign in to join the discussion.