Skip to main content
100%

Fork of Responsive Scatter Plot

✓ Published0🌍 Public
RRakesh Kumar Chekuri
Last edited Mar 21, 2024
Created on Mar 21, 2024

This example visualizes global GDP data as a responsive scatter plot using Chart.js, rendering points on a canvas. It shows yearly GDP values fetched from a CSV file hosted on GitHub, with point colors encoding value ranges: orange below 30 trillion, blue between 30 and 60 trillion, and green above 60 trillion. The code parses the CSV with `split` and `parseInt`/`parseFloat`, filters invalid rows, and configures axes labeled "Year" and "Value". The chart uses the `scatter` type, with `backgroundColor` set per data point for categorical coloring.

AI-generated description

A responsive scatter plot.

MIT Licensed

Similar vizzes