Skip to main content
100%

activity 6_Task 1

✓ Published0🌍 Public
Bbhavanasruthikakarlapudi@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

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 description
MIT Licensed

Similar vizzes