# Chart\.js

[BASE product page](<https://base.akulich.dev/en/library/chartjs/>) · [Resource](<https://www.chartjs.org/>)

ID: chartjs · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Draws interactive Canvas charts: line, bar, pie, scatter, and mixed charts\. It suits dashboards, reports, and web application analytics\.

## Type

JavaScript dashboard charts

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/chartjs/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/chartjs/#resource-access>)

The MIT library is entirely free, including commercial use\.

## [Paid features and costs](<https://base.akulich.dev/en/library/chartjs/#resource-access>)

Data sources and chosen external plugins/services have separate terms\.

## [Access and limitations](<https://base.akulich.dev/en/library/chartjs/#resource-access>)

The MIT library is entirely free, including commercial use\. Data sources and chosen external plugins/services have separate terms\.

## [Use cases](<https://base.akulich.dev/en/library/chartjs/#resource-tasks>)

- Show dashboard metrics and trends
- Build charts in plain JS, React, Vue, or Svelte

## Tech stack

- TypeScript
- JavaScript
- Canvas

## Category IDs

- frontend
- graphics
- infrastructure

## Subcategory IDs

- frontend\.charts
- graphics\.canvas
- infrastructure\.analytics

## Tags

- Charts
- Canvas
- JavaScript
- TypeScript

## [Selection purpose](<https://base.akulich.dev/en/library/chartjs/#resource-selection>)

Show dashboard metrics and trends

## [Choose this when](<https://base.akulich.dev/en/library/chartjs/#resource-selection>)

- Show dashboard metrics and trends
- Build charts in plain JS, React, Vue, or Svelte

## [Consider alternatives when](<https://base.akulich.dev/en/library/chartjs/#resource-selection>)

- When choosing for this topic, compare Chart\.js with Bklit UI\. A candidate to compare under the topic: Charts and data visualization\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## [Requirements](<https://base.akulich.dev/en/library/chartjs/#resource-selection>)

- A canvas on the page, chart data, and configuration; for a modular build, import the types and components you use\.

## [Limitations](<https://base.akulich.dev/en/library/chartjs/#resource-selection>)

- Costs and limits of free use: Data sources and chosen external plugins/services have separate terms\.
- Terms of use: MIT\.
- Canvas cannot be styled with ordinary CSS in the same way as SVG; add a description or data table for accessibility\.
- Select framework wrappers and plugins separately\.

## [Questions before use](<https://base.akulich.dev/en/library/chartjs/#resource-faq>)

### What can you use for free in Chart\.js?

The MIT library is entirely free, including commercial use\.

### What additional costs might arise with Chart\.js?

Data sources and chosen external plugins/services have separate terms\.

### What terms of use matter for Chart\.js?

MIT\.

### Which environment can you use Chart\.js in?

Tech stack: TypeScript, JavaScript, Canvas\.

### How do you get started with Chart\.js?

For the task “Show dashboard metrics and trends”: choose a chart type for the question and prepare the data without mixing units\. Add labels, a legend, and an explanation of the metric; connect updates to real data\. Provide a written finding or a table alongside the chart, then test it on a narrow screen\.

### Why doesn't CSS change individual Chart\.js chart elements?

The chart is drawn on an HTML canvas rather than built from SVG/DOM elements\. Style individual elements through Chart\.js options or plugins\. Decimation is available for large datasets, and tree shaking lets you include only the library parts you need\. Built\-in TypeScript typings and integration options for various frameworks are available\.

## Related resources selected by editors

- bklit\-ui: A candidate to compare under the topic: Charts and data visualization\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## Sources for the selection guide

- [https://www\.chartjs\.org/docs/latest/](<https://www.chartjs.org/docs/latest/>)
- [https://github\.com/chartjs/Chart\.js/blob/master/LICENSE\.md](<https://github.com/chartjs/Chart.js/blob/master/LICENSE.md>)

## [Possible workflow](<https://base.akulich.dev/en/library/chartjs/#resource-scenario>)

Example workflow with Chart\.js: Show dashboard metrics and trends\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A small dataset with units, a time period, and a source\.
- The question the chart should answer, and a list of empty or missing values\.
- A JavaScript or TypeScript project with HTML Canvas; select a compatible wrapper for React, Vue, or Svelte separately\.

## Steps

1. For the task “Show dashboard metrics and trends”: choose a chart type for the question and prepare the data without mixing units\.
2. Add labels, a legend, and an explanation of the metric; connect updates to real data\.
3. Provide a written finding or a table alongside the chart, then test it on a narrow screen\.

## Check your result

- Values, order, and scale match the source data; missing values do not become invented zeros\.
- The chart can be read without relying on color alone; a clear state is shown when data is absent\.

## [License](<https://base.akulich.dev/en/library/chartjs/#resource-license>)

MIT\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## Related resource IDs

- bklit\-ui

## [Usage details](<https://base.akulich.dev/en/library/chartjs/#resource-notes>)

Canvas cannot be styled with ordinary CSS like SVG; add a description or data table for accessibility\. Choose framework wrappers and plugins separately\.

## [Sources](<https://base.akulich.dev/en/library/chartjs/#resource-sources>)

- [Documentation](<https://www.chartjs.org/docs/latest/>)
- [License](<https://github.com/chartjs/Chart.js/blob/master/LICENSE.md>)

## Editorial review date

2026\-10\-04

## Editorial review scope

The purpose and published terms have been reviewed against the cited primary sources\. This page does not confirm that the product was run or tested in every environment\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
