Skip to content

Commit

Permalink
[fix]ISVJ-7207 地图大屏的图表进行统计后,与地图的交互不正确 review by luox
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxianhuii committed Nov 27, 2023
1 parent 8a69413 commit 5cff21f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/common/_utils/EchartsDataService.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default class EchartsDataService {
this.datasetOptions = datasetOptions;
this.dataCache = null; // 缓存的是请求后的数据
this.sortDataCache = null;
this.statisticDataCache = null;
this.axisDatas = []; // 坐标data
this.serieDatas = []; // series data
this.gridAxis = { xAxis: [], yAxis: {} }; // 直角坐标系
Expand Down Expand Up @@ -122,7 +123,12 @@ export default class EchartsDataService {
// 设置datasetOptions
this.setDatasetOptions(datasetOptions);
// 统计后的数据
let features = datasetOptions.length && this._createStatisticData(data, datasetOptions, xBar);
let features;
const isStastic = datasetOptions.length && datasetOptions[0].isStastic;
if(isStastic) {
features = this._createStatisticData(data, datasetOptions, xBar);
this.statisticDataCache = features;
}
// 设置this.data
data = this._setData(data, xBar);
// 生成seriedata
Expand Down

0 comments on commit 5cff21f

Please sign in to comment.