Installation
npm install --save @types/chartjs-plugin-colorschemes
Summary
This package contains type definitions for chartjs-plugin-colorschemes (https://nagix.github.io/chartjs-plugin-colorschemes).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartjs-plugin-colorschemes.
index.d.ts
import Chart = require("chart.js");
declare module "chart.js" {
interface ChartPluginsOptions {
colorschemes?: ColorSchemesOptions | undefined;
}
}
export interface ColorSchemesOptions {
scheme: string | string[];
fillAlpha?: number | undefined;
reverse?: boolean | undefined;
override?: boolean | undefined;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
custom?: ((schemeColors: string[]) => string[] | void) | undefined;
}
declare const ColorSchemesPlugin: Chart.PluginServiceGlobalRegistration & Chart.PluginServiceRegistrationOptions;
export default ColorSchemesPlugin;
Additional Details
- Last updated: Fri, 24 Oct 2025 0441 GMT
- Dependencies: @types/chart.js
Credits
These definitions were written by Dan Manastireanu.