npm install --save @types/chartjs-plugin-colorschemes
This package contains type definitions for chartjs-plugin-colorschemes (https://nagix.github.io/chartjs-plugin-colorschemes).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartjs-plugin-colorschemes.
import * as Chart from "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;
- Last updated: Thu, 08 May 2025 20:02:12 GMT
- Dependencies: @types/chart.js
These definitions were written by Dan Manastireanu.