@types/chartjs-plugin-colorschemes
TypeScript icon, indicating that this package has built-in type declarations

0.4.6 • Public • Published

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.

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;

Additional Details

  • Last updated: Thu, 08 May 2025 20:02:12 GMT
  • Dependencies: @types/chart.js

Credits

These definitions were written by Dan Manastireanu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/chartjs-plugin-colorschemes

Weekly Downloads

637

Version

0.4.6

License

MIT

Unpacked Size

4.1 kB

Total Files

5

Last publish

Collaborators

  • types