chartjs/chartjs-plugin-datalabels

View on GitHub
types/index.d.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {ChartType, Plugin} from 'chart.js';
import {Options} from './options';

declare module 'chart.js' {
  interface ChartDatasetProperties<TType extends ChartType, TData> {
    /**
     * Per dataset datalabels plugin options.
     * @since 0.1.0
     */
    datalabels?: Options;
  }

  interface PluginOptionsByType<TType extends ChartType> {
    /**
     * Per chart datalabels plugin options.
     * @since 0.1.0
     */
    datalabels?: Options;
  }
}

declare const plugin: Plugin;

export * from './context';

export default plugin;