@iotize/ionic
Version:
Iotize specific building blocks on top of @ionic/angular.
70 lines (69 loc) • 3.77 kB
TypeScript
import { AfterViewChecked, ChangeDetectorRef, ElementRef, NgZone, OnDestroy } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { AbstractVariable } from '@iotize/tap/data';
import { BarHorizontal2DComponent, BarVertical2DComponent, BaseChartComponent, LegendPosition } from '@swimlane/ngx-charts';
import { ChartInputMutli, ChartInputStreamVar } from '../ChartDataModel';
import { OnChartSelectEvent } from '../shared-types';
import * as i0 from "@angular/core";
export declare class TapVariableBarChartGroupComponent extends BaseChartComponent implements AfterViewChecked, OnDestroy {
modalController: ModalController;
divContainer: ElementRef;
barChartHor: BarHorizontal2DComponent;
barChartVer: BarVertical2DComponent;
constructor(myChartElement: ElementRef<any>, zone: NgZone, cd: ChangeDetectorRef, platformId: string, modalController: ModalController);
legendPosition: LegendPosition;
showExportButton: boolean;
exportedFileName?: string;
legend: boolean;
legendTitle?: string;
colorScheme: {
domain: string[];
};
orientation: string;
showDetails: boolean;
noBarWhenZero: boolean;
trimXAxisTicks?: boolean;
maxXAxisTickLength?: boolean;
trimYAxisTicks?: boolean;
maxYAxisTickLength?: boolean;
animations: boolean;
roundDomains?: boolean;
roundEdges: boolean;
barPadding?: number;
showYAxisLabel?: boolean;
yAxisLabel?: string;
showXAxisLabel?: boolean;
xAxisLabel?: string;
showGridLines?: boolean;
scaleMax?: number;
/**
* @deprecated use xAxis
*/
set showXAxis(v: boolean);
xAxis: boolean;
/**
* @deprecated use yAxis
*/
set showYAxis(v: boolean);
yAxis: boolean;
history: boolean;
valueCountLimit: number;
set label(indexOrArray: string | string[] | undefined | Function);
set variable(variableOrArray: AbstractVariable<number | number[]>[]);
set input(inputs: ChartInputStreamVar[]);
set data(results: ChartInputMutli[]);
results: ChartInputMutli[];
scrollableChart: boolean;
widthChart?: number;
heightChart?: number;
private chartModel;
private subscription?;
private mutlipleVar?;
createExportedData(): any[];
onSelect(event: OnChartSelectEvent): void;
ngAfterViewChecked(): void;
resizeToScroll(size: number, seriesSize: number): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<TapVariableBarChartGroupComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TapVariableBarChartGroupComponent, "tap-variable-bar-chart-group", never, { "legendPosition": "legendPosition"; "showExportButton": "showExportButton"; "exportedFileName": "exportedFileName"; "legend": "legend"; "legendTitle": "legendTitle"; "colorScheme": "colorScheme"; "orientation": "orientation"; "showDetails": "showDetails"; "noBarWhenZero": "noBarWhenZero"; "trimXAxisTicks": "trimXAxisTicks"; "maxXAxisTickLength": "maxXAxisTickLength"; "trimYAxisTicks": "trimYAxisTicks"; "maxYAxisTickLength": "maxYAxisTickLength"; "animations": "animations"; "roundDomains": "roundDomains"; "roundEdges": "roundEdges"; "barPadding": "barPadding"; "showYAxisLabel": "showYAxisLabel"; "yAxisLabel": "yAxisLabel"; "showXAxisLabel": "showXAxisLabel"; "xAxisLabel": "xAxisLabel"; "showGridLines": "showGridLines"; "scaleMax": "scaleMax"; "showXAxis": "showXAxis"; "xAxis": "xAxis"; "showYAxis": "showYAxis"; "yAxis": "yAxis"; "history": "history"; "valueCountLimit": "valueCountLimit"; "label": "label"; "variable": "variable"; "input": "input"; "data": "data"; "scrollableChart": "scrollableChart"; }, {}, never, never, false, never>;
}