Skip to main content
Public

Share visualization

Loading preview…

chartjs

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

chartjs

0
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.

Comments

Sign in to join the discussion.

MIT Licensed