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.
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: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: chart.js
Credits
These definitions were written by Ferotiq.