0.4.5 • Published 6 months ago
@types/chartjs-plugin-colorschemes v0.4.5
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
// Type definitions for chartjs-plugin-colorschemes 0.4
// Project: https://nagix.github.io/chartjs-plugin-colorschemes
// Definitions by: Dan Manastireanu <https://github.com/danmana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
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;
custom?: ((schemeColors: string[]) => string[] | void) | undefined;
}
declare const ColorSchemesPlugin: Chart.PluginServiceGlobalRegistration & Chart.PluginServiceRegistrationOptions;
export default ColorSchemesPlugin;
Additional Details
- Last updated: Thu, 08 Jul 2021 09:07:12 GMT
- Dependencies: @types/chart.js
- Global values: none
Credits
These definitions were written by Dan Manastireanu.