public constructor()

in pbi-heat-streams/src/chart/ChartColorizer.ts [25:41]


	public constructor(options: VisualSettings, data: IChartData) {
		this._options = options
		this._data = data
		const { isLogScale } = options.data
		const { colorScheme } = options.rendering

		this._scaler = isDivergingColorScheme(colorScheme)
			? new DivergingScaler(
					this.valueMin,
					this.valueMid,
					this.valueMax,
					isLogScale,
			  )
			: new LinearScaler(this.valueMin, this.valueMax, isLogScale)

		this._essexColorizer = new Colorizer(this._scaler, colorScheme)
	}