InfoVis - Assignment 4
✓ Published0🌍 Public
This example shows a bar chart of energy source production in billion kWh for the year 2022, using data from a local CSV file. The visualization highlights the magnitude of each energy type, with data labels displayed above each bar. Built with Chart.js, the chart uses the canvas rendering API, with custom plugins handling the top labels. The page also includes responsive CSS media queries that adjust the chart’s dimensions and label rotation across different screen widths. The code fetches the CSV, parses it, and maps the seventh column to the chart’s dataset.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed