ng-prime-tools
Version:
An advanced PrimeNG table for Angular
42 lines • 1.91 kB
TypeScript
import { OnInit, OnDestroy, ElementRef } from '@angular/core';
import { ChartConfig } from '../models/chart-config.model';
import * as i0 from "@angular/core";
export declare class PTChartComparisonComponent implements OnInit, OnDestroy {
chartConfig: ChartConfig;
medianTitle: string;
xAxisTitle: string;
yAxisTitle: string;
yMin: number;
yMax: number;
yStepSize: number;
chartHeight: string;
chartWidth: string;
canvasRef: ElementRef<HTMLCanvasElement>;
private chart;
constructor();
ngOnInit(): void;
ngOnDestroy(): void;
/**
* Initializes the chart with median and datasets
*/
private initializeChart;
/**
* Computes median values and adds them to the dataset
*/
private getFormattedChartData;
/**
* Computes median values from all datasets at each time point
*/
private calculateMedian;
/**
* Defines chart options including Y-axis scaling
*/
private getChartOptions;
/**
* Destroys the existing chart instance if present
*/
private destroyChart;
static ɵfac: i0.ɵɵFactoryDeclaration<PTChartComparisonComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PTChartComparisonComponent, "pt-chart-comparison", never, { "chartConfig": { "alias": "chartConfig"; "required": false; }; "medianTitle": { "alias": "medianTitle"; "required": false; }; "xAxisTitle": { "alias": "xAxisTitle"; "required": false; }; "yAxisTitle": { "alias": "yAxisTitle"; "required": false; }; "yMin": { "alias": "yMin"; "required": false; }; "yMax": { "alias": "yMax"; "required": false; }; "yStepSize": { "alias": "yStepSize"; "required": false; }; "chartHeight": { "alias": "chartHeight"; "required": false; }; "chartWidth": { "alias": "chartWidth"; "required": false; }; }, {}, never, never, false, never>;
}
//# sourceMappingURL=pt-chart-comparison.component.d.ts.map