My bar chart
✓ Published0🌍 Public
This example shows a stacked bar chart comparing the counts of four travel classes: Economy, Business, FirstClass, and Private, with a title labeling the data as “World Wine Production 2018.” The chart is rendered on a canvas element using the Chart.js library, with its `Chart` constructor configuring the chart type as `stacked` and providing the data arrays for labels and values. The visualization sets the legend to hidden and displays only the title, using the canvas’s default styling for a simple, single-dataset presentation.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed