Skip to main content
100%

Fork of line chart

✓ Published0🌍 Public
Mmukundakrishna.r@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from line chart

This example shows how a line chart can be used to display country GDP over time, with each line representing a different country. It uses Chart.js to render the chart on an HTML canvas element, fetching CSV data from a remote URL and parsing it into datasets. The chart is configured with labeled axes for GDP and Year, and the code explicitly sets axis labels via both Chart.js options and DOM manipulation. The rendering approach relies on Canvas 2D through Chart.js, with a fixed chart size of 800 by 400 pixels.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes