1.0.4 • Published 7 months ago
@types/chartjs-plugin-trendline v1.0.4
Installation
npm install --save @types/chartjs-plugin-trendline
Summary
This package contains type definitions for chartjs-plugin-trendline (https://github.com/Makanz/chartjs-plugin-trendline).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chartjs-plugin-trendline.
index.d.ts
// Type definitions for chartjs-plugin-trendline 1.0
// Project: https://github.com/Makanz/chartjs-plugin-trendline
// Definitions by: Ferotiq <https://github.com/Ferotiq>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import type { Plugin } from 'chart.js';
declare module 'chart.js' {
interface ChartDatasetProperties<TType extends ChartType, TData> {
trendlineLinear?: TrendlineLinearPlugin.TrendlineLinearOptions;
}
}
declare namespace TrendlineLinearPlugin {
interface TrendlineLinearOptions {
style: string;
lineStyle: 'dotted' | 'solid';
width: number;
projection?: boolean;
}
}
declare const TrendlineLinearPlugin: Plugin;
export = TrendlineLinearPlugin;
export as namespace TrendlineLinearPlugin;
Additional Details
- Last updated: Wed, 23 Mar 2022 14:01:47 GMT
- Dependencies: @types/chart.js
- Global values:
TrendlineLinearPlugin
Credits
These definitions were written by Ferotiq.