{"schemaVersion":1,"id":"chartjs","name":"Chart.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/chartjs/","officialUrl":"https://www.chartjs.org/","isCatalog":false,"description":"Draws interactive Canvas charts: line, bar, pie, scatter, and mixed charts. It suits dashboards, reports, and web application analytics.","tasks":["Show dashboard metrics and trends","Build charts in plain JS, React, Vue, or Svelte"],"categoryIds":["frontend","graphics","infrastructure"],"subcategoryIds":["frontend.charts","graphics.canvas","infrastructure.analytics"],"tags":["Charts","Canvas","JavaScript","TypeScript"],"aliases":[],"platforms":[],"stack":["TypeScript","JavaScript","Canvas"],"compatibility":null,"pricing":"free","freeUsage":"The MIT library is entirely free, including commercial use.","paidUsage":"Data sources and chosen external plugins/services have separate terms.","license":"MIT.","selectionGuide":{"purpose":"Show dashboard metrics and trends","chooseWhen":["Show dashboard metrics and trends","Build charts in plain JS, React, Vue, or Svelte"],"considerInstead":["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":["A canvas on the page, chart data, and configuration; for a modular build, import the types and components you use."],"limitations":["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."],"faq":[{"question":"What can you use for free in Chart.js?","answer":"The MIT library is entirely free, including commercial use."},{"question":"What additional costs might arise with Chart.js?","answer":"Data sources and chosen external plugins/services have separate terms."},{"question":"What terms of use matter for Chart.js?","answer":"MIT."},{"question":"Which environment can you use Chart.js in?","answer":"Tech stack: TypeScript, JavaScript, Canvas."},{"question":"How do you get started with Chart.js?","answer":"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."},{"question":"Why doesn't CSS change individual Chart.js chart elements?","answer":"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":[{"id":"bklit-ui","reason":"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":["https://www.chartjs.org/docs/latest/","https://github.com/chartjs/Chart.js/blob/master/LICENSE.md"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["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":["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."],"checks":["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."],"goal":"Example workflow with Chart.js: Show dashboard metrics and trends."},"sources":["https://www.chartjs.org/docs/latest/","https://github.com/chartjs/Chart.js/blob/master/LICENSE.md"],"checkedAt":"2026-10-04","reviewScope":"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.","relatedIds":["bklit-ui"],"dataVersion":"cbbe7123b47a5ae80983","type":"JavaScript dashboard charts","kind":"library","pricingNote":"The MIT library is entirely free, including commercial use. Data sources and chosen external plugins/services have separate terms.","notes":"Canvas cannot be styled with ordinary CSS like SVG; add a description or data table for accessibility. Choose framework wrappers and plugins separately.","labeledSources":[{"url":"https://www.chartjs.org/docs/latest/","label":"Documentation"},{"url":"https://github.com/chartjs/Chart.js/blob/master/LICENSE.md","label":"License"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}