Skip to main content
100%

A2 - Bar Chart with Log Scale

✓ Published0🌍 Public
DDuc Pham
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from A2_BarChart

This bar chart displays the average earthquake magnitude per country, filtered to show only countries with an average above 3.0. It uses a base-2 logarithmic scale on the x-axis to better visualize the range of values, with bars colored orange and annotated with their exact magnitudes. The visualization is rendered using p5.js, with data loaded from a CSV file hosted on GitHub. Interactive tooltips appear on hover, and the chart also highlights the highest (Japan) and lowest (Afghanistan) averages.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes