chartjs
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed