Skip to main content
100%

Getting started Chartjs

✓ Published0🌍 Public
IIan
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from Hello VizHub

This example displays a simple line chart with six labeled data points and their corresponding values. It demonstrates a minimal setup using the Chart.js library, loaded from a CDN, to render the visualization onto an HTML5 Canvas element. The code initializes a Chart instance via its constructor, passing a configuration object that specifies the line chart type, the dataset labels and numeric values, and options such as enabling the y-axis to start at zero. The page also includes local CSS styling and demonstrates importing libraries via a script tag.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes