Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Stacked area chart

Public visualization

Viewing a saved revision (read-only)

c591b4e9f3d0454e96fb4932b0b216e9

Fork of Stacked area chart

0 stars0🌍 Public
Ddale@benchmarking.com.au
Last edited Aug 15, 2025
Created on Aug 15, 2025
Forked from Stacked area chart

This fork of a Chart.js line chart renders monthly temperature variations across three years as a stacked area chart, with the chart type set to `line` and line filling enabled. The code defines a custom `gradientColor` function using Canvas’ `createLinearGradient` to generate per-dataset area backgrounds. It includes interactive features via the `chartjs-plugin-zoom`, enabling wheel and pinch zooming in both x and y dimensions, plus tooltips and a bottom legend. The chart is drawn on a canvas inside an HTML container, with sample data hardcoded for San Francisco.

AI-generated description