import { ElementRef, OnInit, EventEmitter } from '@angular/core'; import { CfCoreComponent } from '../core/core.component'; import { ChartsColorScheme } from '../../models/chart/chart.model'; import { ChartStylingModel } from '../../models/chart/chart-styling.model'; import { TemplateService } from '../../services/template-service/template.service'; import { CfEventService } from '../../services/event-service/event.service'; /** *
CF Chart component is created based on Ngx-charts
*/ export declare class CfChartComponent extends CfCoreComponent implements OnInit { elementRef: ElementRef; /**@hidden */ eventService: CfEventService; /** @hidden*/ cfComponentChartTemplate: any; /** @hidden*/ cfChartHost: any; /** @hidden*/ cfNgxChart: any; /** *Chart component model object. Refer to ../models/chart/chart.model.ts.
*/ properties: any; /** *The styling object of the chart component. Refer to ../models/chart/chart-styling.model.ts
*/ styling: ChartStylingModel; /** *Data to show in the chart format
*/ data: any[]; /** * Dimensions of chart [width, height] by px */ view: number[]; /** *Fill elements with a gradient instead of a solid color
*/ gradient: boolean; /** *Show or hide the legend
*/ showLegend: boolean; /** *Legend position. Can be: top, right, bottom, left. Default: right.
*/ legendPosition: string; /** *Chart alignment. Can be: start, center, end. Default: start.
*/ chartAlignment: string; /** *Show or hide the x axis
*/ showXAxis: boolean; /** *Show or hide the y axis
*/ showYAxis: boolean; /** *Show or hide the x axis label
*/ showXAxisLabel: boolean; /** *Show or hide the y axis label
*/ showYAxisLabel: boolean; /** *The x axis label text
*/ xAxisLabel: string; /** *The y axis label text
*/ yAxisLabel: string; /** *The color scheme name from the charts color scheme sets. Default color scheme is: forest
*The color scheme of the chart - it is array with string css color values. * Can be set by providing array with colors or by selecting from existing color schemes palettes. * Default template color scheme is this:
*{{'{'}}
* domain: []
* {{'}'}}
*/
colorScheme: ChartsColorScheme;
/**
* The event will be emitted when the chart is clicked
*/ onClick: EventEmitterList of all charts color schemes
*/ colorSchemes: any[]; /** @hidden*/ currentHeight: string; /** @hidden*/ constructor(elementRef: ElementRef, /**@hidden */ templateService: TemplateService, /**@hidden */ eventService: CfEventService); /** @hidden*/ ngOnInit(): void; /** @hidden *The method will emit event when the chart is clicked
*/ onSelect(event: any): void; /** @hidden * Method to update chart height when chart legend is on top/bottom of chart itself, * because in that case own ngx-chart element class="ngx-charts-outer" has column orientation * and element ngx-charts-chart can't recalculate it own height. */ updateChartHeight(number: any): void; }