|
| 1 | +## API Report File for "@angular/material_charts" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import * as i0 from '@angular/core'; |
| 8 | +import { AfterViewInit } from '@angular/core'; |
| 9 | +import { OnChanges } from '@angular/core'; |
| 10 | +import { OnDestroy } from '@angular/core'; |
| 11 | +import { PipeTransform } from '@angular/core'; |
| 12 | +import { SimpleChanges } from '@angular/core'; |
| 13 | + |
| 14 | +// @public |
| 15 | +export class MatChart implements AfterViewInit, OnChanges, OnDestroy { |
| 16 | + constructor(...args: unknown[]); |
| 17 | + ariaLabel: string; |
| 18 | + color: ThemePalette; |
| 19 | + datasets: MatChartDataset[]; |
| 20 | + height: number; |
| 21 | + hideTooltip(): void; |
| 22 | + label: string; |
| 23 | + // (undocumented) |
| 24 | + ngAfterViewInit(): void; |
| 25 | + // (undocumented) |
| 26 | + ngOnChanges(_changes: SimpleChanges): void; |
| 27 | + // (undocumented) |
| 28 | + ngOnDestroy(): void; |
| 29 | + // (undocumented)\n static ngAcceptInputType_showLegend: unknown; |
| 30 | + // (undocumented) |
| 31 | + static ngAcceptInputType_showTooltip: unknown; |
| 32 | + showLegend: boolean; |
| 33 | + showTooltip: boolean; |
| 34 | + showTooltipAt(event: MouseEvent, text: string): void; |
| 35 | + type: MatChartType; |
| 36 | + valueFor(data: MatChartDataset['data'], label: string): number; |
| 37 | + width: number; |
| 38 | + // (undocumented) |
| 39 | + static ɵcmp: i0.ɵɵComponentDeclaration<MatChart, "mat-chart", ["matChart"], { "type": { "alias": "type"; "required": false; }; "datasets": { "alias": "datasets"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>; |
| 40 | + // (undocumented) |
| 41 | + static ɵfac: i0.ɵɵFactoryDeclaration<MatChart, never>; |
| 42 | +} |
| 43 | + |
| 44 | +// @public (undocumented) |
| 45 | +export interface MatChartDataPoint { |
| 46 | + label: string; |
| 47 | + value: number; |
| 48 | +} |
| 49 | + |
| 50 | +// @public (undocumented) |
| 51 | +export interface MatChartDataset { |
| 52 | + color?: string; |
| 53 | + data: MatChartDataPoint[]; |
| 54 | + label: string; |
| 55 | +} |
| 56 | + |
| 57 | +// @public (undocumented) |
| 58 | +export class MatChartsModule { |
| 59 | + // (undocumented) |
| 60 | + static ɵfac: i0.ɵɵFactoryDeclaration<MatChartsModule, never>; |
| 61 | + // (undocumented) |
| 62 | + static ɵinj: i0.ɵɵInjectorDeclaration<MatChartsModule>; |
| 63 | + // (undocumented) |
| 64 | + static ɵmod: i0.ɵɵNgModuleDeclaration<MatChartsModule, never, [typeof MatChart, typeof MatChartValuePipe], [typeof MatChart, typeof MatChartValuePipe]>; |
| 65 | +} |
| 66 | + |
| 67 | +// @public |
| 68 | +export type MatChartType = 'line' | 'bar' | 'pie'; |
| 69 | + |
| 70 | +// @public (undocumented) |
| 71 | +export class MatChartValuePipe implements PipeTransform { |
| 72 | + // (undocumented) |
| 73 | + transform(data: MatChartDataPoint[], label: string): number; |
| 74 | + // (undocumented) |
| 75 | + static ɵfac: i0.ɵɵFactoryDeclaration<MatChartValuePipe, never>; |
| 76 | + // (undocumented) |
| 77 | + static ɵpipe: i0.ɵɵPipeDeclaration<MatChartValuePipe, "chartValue", true>; |
| 78 | +} |
| 79 | + |
| 80 | +// (No @packageDocumentation comment for this package) |
| 81 | + |
| 82 | +``` |
0 commit comments