ngx-beautiful-charts
Version:
A library to create charts in Angular
43 lines (42 loc) • 1.29 kB
TypeScript
import { ElementRef, OnInit, OnChanges } from '@angular/core';
import { GlobalParametersService } from '../../global/global-parameters.service';
import { LineGraphService } from './line-graph.service';
export declare class LineGraphComponent implements OnInit, OnChanges {
lineGraphService: LineGraphService;
private globalParametersService;
private currentElement;
data: [{
x: number;
y: number;
info: any;
}];
chartBase: boolean;
width: number;
height: number;
color: string;
colorScheme: string;
minX: number;
minY: number;
maxX: number;
maxY: number;
gridPrecisionX: number;
gridPrecisionY: number;
xAxisTitle: string;
yAxisTitle: string;
customColorScheme: string[];
componentID: number;
xPadding: number;
yPadding: number;
graphLinePath: string;
dataCopy: any;
transformedData: any;
constructor(lineGraphService: LineGraphService, globalParametersService: GlobalParametersService, currentElement: ElementRef);
setDimensions(): void;
setMinandMax(): void;
transformData(): void;
printAllInput(): void;
setLinePath(): void;
setColor(): void;
ngOnInit(): void;
ngOnChanges(): void;
}