UNPKG

@rfprodz/client-d3-charts

Version:

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

39 lines (38 loc) 1.45 kB
import { BreakpointObserver } from '@angular/cdk/layout'; import { ILineChartOptions, TLineChartData } from '../../interfaces/line-chart.interface'; import * as i0 from "@angular/core"; /** Line chart example. */ export declare class AppChartExamplesLineComponent { private readonly breakpointObserver; /** The chart data. */ private get chartData(); /** The breakpoint observer stream. */ private readonly breakpoint$; /** The chart configuration stream. */ readonly chartConfig$: import("rxjs").Observable<{ data: TLineChartData[]; datasetLabels: string[]; options: Partial<ILineChartOptions>; optionsDateDdMmYy: Partial<ILineChartOptions>; optionsDateDdMmYyyy: Partial<ILineChartOptions>; optionsDateMmYyyy: Partial<ILineChartOptions>; }>; constructor(breakpointObserver: BreakpointObserver); /** * Random value generator. * @param range value range */ private randomValue; /** * Random timestamp generator. * @param range value range */ private randomTimestamp; /** * Example line chart options. * @param dateFormat date format */ private lineChartOptions; static ɵfac: i0.ɵɵFactoryDeclaration<AppChartExamplesLineComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AppChartExamplesLineComponent, "app-chart-examples-line", never, {}, {}, never, never, false, never>; }