ngx-beautiful-charts
Version:
A library to create charts in Angular
32 lines (31 loc) • 1.03 kB
TypeScript
import { OnInit, OnChanges, ElementRef } from '@angular/core';
import { BarChartService } from './bar-chart.service';
import { GlobalParametersService } from '../../global/global-parameters.service';
export declare class BarChartComponent implements OnInit, OnChanges {
barChartService: BarChartService;
private globalParametersService;
private currentElement;
data: [{
name: string;
value: number;
}];
width: number;
height: number;
xAxisTitle: string;
yAxisTitle: string;
showGridLines: boolean;
color: string;
colorScheme: string;
customColorScheme: string[];
componentID: number;
xPadding: number;
yPadding: number;
barPaths: string[];
dataCopy: any;
computeBarPaths(): void;
constructor(barChartService: BarChartService, globalParametersService: GlobalParametersService, currentElement: ElementRef);
setColor(): void;
setDimensions(): void;
ngOnInit(): void;
ngOnChanges(): void;
}