Skip to content

Commit 6b869b2

Browse files
committed
【fix】修复例子使用的数据id和字段 review by xiongjj
1 parent 689d639 commit 6b869b2

13 files changed

+37
-37
lines changed

examples/component/components_basic_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
vm.name = properties['机场'];
114114
vm.passengerNumber = properties['2017旅客吞吐量(人次)'] || 0;
115115
vm.goodsNumber = properties['2017货邮吞吐量(吨)'] || 0;
116-
vm.speedIncrease = properties['同比增速_'] || 0;
116+
vm.speedIncrease = properties['同比增速%'] || 0;
117117
}
118118
});
119119
}

examples/component/components_chart.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
resources.text_dataset + "</span>" +
8888
"<select class='form-control' id='rule' name='rule'>" +
8989
"<option value='https://iserver.supermap.io/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/Landuse_R' selected>iServer(Landuse_R@Jingjin)</option>" +
90-
"<option value='https://iportal.supermap.io/iportal/web/datas/975651597'>iPortal(民航数据)</option>" +
90+
"<option value='https://iportal.supermap.io/iportal/web/datas/676516522'>iPortal(民航数据)</option>" +
9191
"</select></div>" +
9292
"<div class='chart-type-btn'>" +
9393
"<button type='button' class='btn btn-default graph' id='scatter' title='" + resources.title_Scatter +
@@ -186,8 +186,8 @@
186186
name: "机场"
187187
},
188188
yAxis: {
189-
field: "同比增速_",
190-
name: "同比增速_"
189+
field: "同比增速%",
190+
name: "同比增速%"
191191
}
192192
}];
193193
serviceType = 'iPortal';

examples/component/components_chart_vue.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
right: "830px"
6868
},
6969
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
70-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
70+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
7171
maxFeatures: 20
7272
}),
7373
// echarts中涉及到超图数据series和坐标轴的字段的配置
@@ -77,14 +77,14 @@
7777
isStastic: true, //是否统计, 默认不统计
7878
isStack: true, //是否堆叠, 默认不堆叠
7979
xField: "机场", //x坐标轴数据字段
80-
yField: "COL_2016起降架次(架次)" //统计的数据,legned默认名字
80+
yField: "2016起降架次(架次)" //统计的数据,legned默认名字
8181
},
8282
{
8383
seriesType: "bar",
8484
isStastic: true,
8585
isStack: true,
8686
xField: "机场",
87-
yField: "COL_2017起降架次(架次)",
87+
yField: "2017起降架次(架次)",
8888
}
8989
],
9090
datasetOptions1: [
@@ -93,14 +93,14 @@
9393
isStastic: true, //是否统计, 默认不统计
9494
isStack: true, //是否堆叠, 默认不堆叠
9595
xField: "机场", //x坐标轴数据字段
96-
yField: "COL_2016旅客吞吐量(人次)" //统计的数据,legned默认名字
96+
yField: "2016旅客吞吐量(人次)" //统计的数据,legned默认名字
9797
},
9898
{
9999
seriesType: "line",
100100
isStastic: true,
101101
isStack: true,
102102
xField: "机场",
103-
yField: "COL_2017旅客吞吐量(人次)"
103+
yField: "2017旅客吞吐量(人次)"
104104
}
105105
],
106106
datasetOptions2: [
@@ -109,7 +109,7 @@
109109
isStastic: true, //是否统计, 默认不统计
110110
isStack: false, //是否堆叠, 默认不堆叠
111111
xField: "机场", //x坐标轴数据字段
112-
yField: "同比增速_" //统计的数据,legned默认名字
112+
yField: "同比增速%" //统计的数据,legned默认名字
113113
}
114114
],
115115
// 和echarts一样的配置
@@ -134,7 +134,7 @@
134134
}
135135
},
136136
echartOptions2: {
137-
legend: {data: ['同比增速_']},//与yField数据一致
137+
legend: {data: ['同比增速%']},//与yField数据一致
138138
tooltip: {formatter: "{b0}: {c0}"},
139139
}
140140

examples/component/components_demo_vue.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
return {
316316
dataset: {
317317
type: 'iPortal', //iServer iPortal
318-
url: 'https://iportal.supermap.io/iportal/web/datas/975651597',
318+
url: 'https://iportal.supermap.io/iportal/web/datas/676516522',
319319
queryInfo: {
320320
maxFeatures: 20
321321
}
@@ -325,17 +325,17 @@
325325
seriesType: 'bar', //图表类型
326326
isStastic: true, //是否统计, 默认不统计
327327
xField: '机场', //x坐标轴数据字段
328-
yField: 'COL_2016起降架次(架次)' //统计的数据,legned默认名字
328+
yField: '2016起降架次(架次)' //统计的数据,legned默认名字
329329
},
330330
{
331331
seriesType: 'bar', //图表类型
332332
isStastic: true, //是否统计, 默认不统计
333333
xField: '机场', //x坐标轴数据字段
334-
yField: 'COL_2017起降架次(架次)' //统计的数据,legned默认名字
334+
yField: '2017起降架次(架次)' //统计的数据,legned默认名字
335335
}
336336
],
337337
echartOption: {
338-
legend: { data: ['COL_2017起降架次(架次)', 'COL_2016起降架次(架次)'] }, //与 yField数据一致
338+
legend: { data: ['2017起降架次(架次)', '2016起降架次(架次)'] }, //与 yField数据一致
339339
grid: {
340340
top: 30,
341341
bottom: 65,

examples/component/components_pie_chart_vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
right: "10px"
3939
},
4040
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
41-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
41+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
4242
maxFeatures: 20
4343
}),
4444
datasetOptions: [
4545
{
4646
seriesType: "pie", //图表类型
4747
isStastic: true, //是否统计, 默认不统计
4848
xField: "机场", //x坐标轴数据字段
49-
yField: "同比增速_" //统计的数据,legned默认名字
49+
yField: "同比增速%" //统计的数据,legned默认名字
5050
}
5151
]
5252
};

examples/component/components_radar_chart_vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
right: "10px"
3838
},
3939
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
40-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
40+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
4141
maxFeatures: 20
4242
}),
4343
datasetOptions: [
4444
{
4545
seriesType: "radar", //图表类型
4646
isStastic: true, //是否统计, 默认不统计
4747
xField: "机场", //x坐标轴数据字段
48-
yField: "同比增速_" //统计的数据,legned默认名字
48+
yField: "同比增速%" //统计的数据,legned默认名字
4949
}
5050
]
5151
};

examples/component/components_theme_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
vm.name = properties['机场'];
211211
vm.passengerNumber = properties['2017旅客吞吐量(人次)'] || 0;
212212
vm.goodsNumber = properties['2017货邮吞吐量(吨)'] || 0;
213-
vm.speedIncrease = properties['同比增速_'] || 0;
213+
vm.speedIncrease = properties['同比增速%'] || 0;
214214
}
215215
});
216216
}

examples/component/l_chart_vue.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
right: "830px"
6060
},
6161
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
62-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
62+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
6363
maxFeatures: 20
6464
}),
6565
// echarts中涉及到超图数据series和坐标轴的字段的配置
@@ -69,14 +69,14 @@
6969
isStastic: true, //是否统计, 默认不统计
7070
isStack: true, //是否堆叠, 默认不堆叠
7171
xField: "机场", //x坐标轴数据字段
72-
yField: "COL_2016起降架次(架次)" //统计的数据,legned默认名字
72+
yField: "2016起降架次(架次)" //统计的数据,legned默认名字
7373
},
7474
{
7575
seriesType: "bar",
7676
isStastic: true,
7777
isStack: true,
7878
xField: "机场",
79-
yField: "COL_2017起降架次(架次)",
79+
yField: "2017起降架次(架次)",
8080
}
8181
],
8282
datasetOptions1: [
@@ -85,14 +85,14 @@
8585
isStastic: true, //是否统计, 默认不统计
8686
isStack: true, //是否堆叠, 默认不堆叠
8787
xField: "机场", //x坐标轴数据字段
88-
yField: "COL_2016旅客吞吐量(人次)" //统计的数据,legned默认名字
88+
yField: "2016旅客吞吐量(人次)" //统计的数据,legned默认名字
8989
},
9090
{
9191
seriesType: "line",
9292
isStastic: true,
9393
isStack: true,
9494
xField: "机场",
95-
yField: "COL_2017旅客吞吐量(人次)"
95+
yField: "2017旅客吞吐量(人次)"
9696
}
9797
],
9898
datasetOptions2: [
@@ -101,7 +101,7 @@
101101
isStastic: true, //是否统计, 默认不统计
102102
isStack: false, //是否堆叠, 默认不堆叠
103103
xField: "机场", //x坐标轴数据字段
104-
yField: "同比增速_" //统计的数据,legned默认名字
104+
yField: "同比增速%" //统计的数据,legned默认名字
105105
}
106106
],
107107
// 和echarts一样的配置
@@ -126,7 +126,7 @@
126126
}
127127
},
128128
echartOptions2: {
129-
legend: { data: ['同比增速_'] },//与yField数据一致
129+
legend: { data: ['同比增速%'] },//与yField数据一致
130130
tooltip: { formatter: "{b0}: {c0}" },
131131
}
132132

examples/component/l_pie_chart_vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@
4040
zIndex: 500
4141
},
4242
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
43-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
43+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
4444
maxFeatures: 20
4545
}),
4646
datasetOptions: [
4747
{
4848
seriesType: "pie", //图表类型
4949
isStastic: true, //是否统计, 默认不统计
5050
xField: "机场", //x坐标轴数据字段
51-
yField: "同比增速_" //统计的数据,legned默认名字
51+
yField: "同比增速%" //统计的数据,legned默认名字
5252
}
5353
]
5454
};

examples/component/l_radar_chart_vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
zIndex: 500
3939
},
4040
dataset: new SuperMap.Components.commontypes.iPortalDataParameter({
41-
url: "https://iportal.supermap.io/iportal/web/datas/975651597",
41+
url: "https://iportal.supermap.io/iportal/web/datas/676516522",
4242
maxFeatures: 20
4343
}),
4444
datasetOptions: [
4545
{
4646
seriesType: "radar", //图表类型
4747
isStastic: true, //是否统计, 默认不统计
4848
xField: "机场", //x坐标轴数据字段
49-
yField: "同比增速_" //统计的数据,legned默认名字
49+
yField: "同比增速%" //统计的数据,legned默认名字
5050
}
5151
]
5252
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy