{"library":"chartjs-node-canvas","type":"library","category":null,"description":"chartjs-node-canvas is a Node.js library that enables server-side rendering of Chart.js charts into static image files (PNG, JPEG). It achieves this by utilizing the `canvas` package, which provides a Canvas API implementation compatible with Node.js environments, bypassing browser-specific rendering requirements. The current stable version is 5.0.0, which maintains compatibility with Chart.js v3.x and v4.x. While there isn't a strict, rapid release cadence, the project is actively maintained, with regular updates for dependency bumps and Node.js version support. Its primary differentiator is providing a reliable, performant way to generate Chart.js images outside of a browser, essential for tasks like generating reports, social media share images, or email attachments from server-side applications. It integrates directly with Chart.js as a peer dependency, requiring Chart.js itself to be installed separately, and allowing developers to manage its version.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install chartjs-node-canvas","imports":["import { ChartJSNodeCanvas } from 'chartjs-node-canvas';","import type { ChartJSNodeCanvasOptions } from 'chartjs-node-canvas';","import { Chart, CategoryScale, LinearScale, BarController, BarElement, Title, Tooltip, Legend } from 'chart.js';\nChart.register(CategoryScale, LinearScale, BarController, BarElement, Title, Tooltip, Legend);"]},{"cmd":"yarn add chartjs-node-canvas","imports":[]},{"cmd":"pnpm add chartjs-node-canvas","imports":[]}],"homepage":null,"github":"https://github.com/SeanSobey/ChartjsNodeCanvas","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/chartjs-node-canvas","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/chartjs-node-canvas/compatibility"}}