File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- ##使用教程
1
+ <数据可视化>
2
2
3
+ ##操作说明
3
4
5
+ 克隆: git clone https://github.com/githyw/vision.git
4
6
5
- 1.npm install
7
+ 1.cd vision
6
8
7
- 2.cd vision
9
+ 2.npm install
8
10
9
11
3.npm run serve
12
+
13
+ #采用的技术
14
+
15
+ 1.使用Cli4搭建的Vue2项目,地图(map)是用aixos获取的数据接口, 其他数据使用的是后台websocket推送到前端的
16
+
17
+ 2.结合了Echarts使数据渲染出图形来
18
+
19
+ 3.可实现多个客户端连接的效果, 比如:A客户端和B客户端同时在线,A客户端查看某个图形大小,B客户端中的图形也跟着改变大小
Original file line number Diff line number Diff line change 40
40
methods: {
41
41
async initChart (){
42
42
this .chartInstance = this .$echarts .init (this .$refs .map_ref ,this .theme )
43
- const ret = await axios .get (' http://localhost:1314 /map/china.json' )
43
+ const ret = await axios .get (' http://42.192.16.209/ /map/china.json' )
44
44
this .$echarts .registerMap (' china' ,ret .data )
45
45
const initOption = {
46
46
title: {
68
68
this .chartInstance .on (' click' ,async arg => {
69
69
const provinceInfo = getProvinceMapInfo (arg .name )
70
70
if (! this .dataMap [provinceInfo .key ]){
71
- const ret = await axios .get (' http://localhost:1314 /' + provinceInfo .path )
71
+ const ret = await axios .get (' http://42.192.16.209 /' + provinceInfo .path )
72
72
this .dataMap [provinceInfo .key ] = ret .data
73
73
this .$echarts .registerMap (provinceInfo .key ,ret .data )
74
74
}
You can’t perform that action at this time.
0 commit comments