MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / updateData

Method updateData

src/common/components/chart/ChartView.js:124–132  ·  view source on GitHub ↗

* @function ChartView.prototype.updateData * @description 更新图表数据。 * @param {ChartView.Datasets} datasets - 数据来源。 * @param {Object} chartOption - X,Y轴信息。

(datasets, chartOption)

Source from the content-addressed store, hash-verified

122 * @param {Object} chartOption - X,Y轴信息。
123 */
124 updateData(datasets, chartOption) {
125 let me = this;
126 this.viewModel.updateData(datasets, chartOption, function (options) {
127 me._updateChart(options);
128 if (me.addChart) {
129 me.addChart();
130 }
131 });
132 }
133
134 /**
135 * @function ChartView.prototype._createChart

Callers 15

ChartViewSpec.jsFile · 0.45
mapbox-gl.jsFile · 0.45
ieFunction · 0.45
$iFunction · 0.45
mapv.min.jsFile · 0.45
mapv.jsFile · 0.45
afFunction · 0.45
avFunction · 0.45
TgFunction · 0.45

Calls 1

_updateChartMethod · 0.80

Tested by

no test coverage detected