UNPKG

ng-color-scale

Version:

[![npm](https://img.shields.io/npm/v/ng-color-scale.svg)](https://www.npmjs.com/package/ng-color-scale) [![npm downloads](https://img.shields.io/npm/dm/ng-color-scale.svg)](https://npmjs.org/ng-color-scale) ![publish](https://github.com/eddrichjanzzen/ng-

34 lines (33 loc) 817 B
import { OnChanges, ElementRef } from '@angular/core'; export declare class NgColorScaleComponent implements OnChanges { private host; data: number; leftLabel: string; rightLabel: string; middleLabel: string; minVal: number; maxVal: number; hideAxis: boolean; colorList: string[]; displayMeta: string; private _margin; private _svg; private _chart; private _width; private _height; private _barWidth; private _xScale; private _colors; private _textHeight; private _axisHeight; private _axisOffset; private _id; constructor(host: ElementRef); ngOnChanges(): void; ngOnInit(): void; private _createChart; private _drawAxis; private _drawcolorBar; private _drawLabels; _onResize(event: any): void; }