Skip to main content
100%

chartjs

✓ Published0🌍 Public
Mmfakboo
Last edited Sep 13, 2022
Created on May 27, 2021
Forked from HTML Starter

This example demonstrates an interactive line chart built with Chart.js, where React state controls which data series are visible. Toggle buttons below the chart let users show or hide different colored categories, and the chart updates reactively through a custom `useChart` hook that instantiates new Chart instances on each render. The visualization renders to a canvas element, with a dataset containing labels, values, and color properties for filtering. The legend is enabled with red font, and the y-axis starts at zero.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes