MCPcopy Index your code
hub / github.com/apache/echarts / setCalculationInfo

Method setCalculationInfo

src/data/SeriesData.ts:716–723  ·  view source on GitHub ↗
(
        key: (keyof DataCalculationInfo<HostModel>) | DataCalculationInfo<HostModel>,
        value?: DataCalculationInfo<HostModel>[keyof DataCalculationInfo<HostModel>]
    )

Source from the content-addressed store, hash-verified

714 value: DataCalculationInfo<HostModel>[CALC_INFO_KEY]
715 ): void;
716 setCalculationInfo(
717 key: (keyof DataCalculationInfo<HostModel>) | DataCalculationInfo<HostModel>,
718 value?: DataCalculationInfo<HostModel>[keyof DataCalculationInfo<HostModel>]
719 ): void {
720 isObject(key)
721 ? zrUtil.extend(this._calculationInfo, key as object)
722 : ((this._calculationInfo as any)[key] = value);
723 }
724
725 /**
726 * @return Never be null/undefined. `number` will be converted to string. Because:

Callers 2

createSeriesDataFunction · 0.95
dataStackFunction · 0.80

Calls 1

isObjectFunction · 0.50

Tested by

no test coverage detected