UNPKG

@swimlane/ngx-charts

Version:

Declarative Charting Framework for Angular2 and beyond!

21 lines (20 loc) 708 B
import { OnChanges, SimpleChanges } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; export declare class ScaleLegendComponent implements OnChanges { private sanitizer; valueRange: any; colors: any; height: any; width: any; horizontal: boolean; gradient: any; constructor(sanitizer: DomSanitizer); ngOnChanges(changes: SimpleChanges): void; /** * Generates the string used in the gradient stylesheet properties * @param {array} colors array of colors * @param {array} splits array of splits on a scale of (0, 1) * @return {string} */ gradientString(colors: any, splits: any): string; }