Fork of Reusable Scatter Plot
✓ Published2🌍 Public
This example visualizes car prices as a line chart, plotting car models along the x-axis against the number of doors on the y-axis. It fetches CSV data from a remote GitHub gist and uses the Chart.js library to render the chart on an HTML canvas element. The code defines asynchronous functions to retrieve and parse the data, then constructs a line dataset with customized colors, point styling, and axis titles. The chart is rendered within a fixed-size container, making it a straightforward demonstration of Chart.js’s canvas-based line chart capabilities for tabular dataset exploration.
AI-generated descriptionMIT Licensed