activity 6_Task 1
✓ Published0🌍 Public
This example presents a horizontal bar chart of the top 30 most populated countries in 2020, using Chart.js to render the visualization on a Canvas element. Country names are placed on the y-axis, with population counts shown in thousands on the x-axis, colored uniformly in blue. The chart is built by mapping hard-coded population data into labels and values, then passing them to the Chart.js configuration with an inverted indexing axis for horizontal orientation. The visualization uses the `chart.js` library from a CDN, with the x-axis scaled from zero and axis titles provided.
AI-generated descriptionMIT Licensed