UNPKG

@rfprodz/client-d3-charts

Version:

Angular chart components based on D3JS (https://d3js.org).

13 lines (12 loc) 611 B
import type { ElementRef } from '@angular/core'; import type { ILineChartOptions, TLineChartData } from '../interfaces/line-chart.interface'; /** The line chart default configuration. */ export declare const defaultLineChartConfig: ILineChartOptions; /** * Draws the line chart. * @param container the chart container * @param data the chart data * @param options the chart options * @returns the chart configuration */ export declare const drawLineChart: (container: ElementRef<HTMLDivElement>, data: TLineChartData[], datasetLabels: string[], options?: Partial<ILineChartOptions>) => ILineChartOptions;