Skip to content

Commit 33f633a

Browse files
committed
:Rocket: Update gallery examples
1 parent 8430c37 commit 33f633a

File tree

352 files changed

+57868
-18951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

352 files changed

+57868
-18951
lines changed

BMap/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
- [Bmap - Air_quality_baidu_map](BMap/air_quality_baidu_map.md 'include :type=code')
2-
- [Bmap - Bmap_beijing_bus_routines](BMap/bmap_beijing_bus_routines.md 'include :type=code')
3-
- [Bmap - Bmap_base](BMap/bmap_base.md 'include :type=code')
4-
- [Bmap - Bmap_heatmap](BMap/bmap_heatmap.md 'include :type=code')
5-
- [Bmap - Bmap_custom](BMap/bmap_custom.md 'include :type=code')
6-
- [Bmap - Hiking_trail_in_hangzhou](BMap/hiking_trail_in_hangzhou.md 'include :type=code')
1+
- [Bmap - Air_quality_baidu_map](BMap/air_quality_baidu_map.md ':type=code')
2+
- [Bmap - Bmap_beijing_bus_routines](BMap/bmap_beijing_bus_routines.md ':type=code')
3+
- [Bmap - Bmap_base](BMap/bmap_base.md ':type=code')
4+
- [Bmap - Bmap_heatmap](BMap/bmap_heatmap.md ':type=code')
5+
- [Bmap - Bmap_custom](BMap/bmap_custom.md ':type=code')
6+
- [Bmap - Hiking_trail_in_hangzhou](BMap/hiking_trail_in_hangzhou.md ':type=code')

BMap/air_quality_baidu_map.html

Lines changed: 25 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Awesome-pyecharts</title>
6-
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
7-
<script type="text/javascript" src="https://assets.pyecharts.org/assets/bmap.min.js"></script>
6+
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
7+
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/bmap.min.js"></script>
88
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=FAKE_AK"></script>
99
<script type="text/javascript" src="https://api.map.baidu.com/getscript?v=2.0&ak=FAKE_AK"></script>
1010

1111
</head>
1212
<body>
13-
<div id="dd017910cc7549a685577dfb3ef0e9d9" class="chart-container" style="width:1200px; height:800px;"></div>
13+
<div id="a2d42deec7454c6887ea10adf6d09aa6" class="chart-container" style="width:1200px; height:800px;"></div>
1414
<script>
15-
var chart_dd017910cc7549a685577dfb3ef0e9d9 = echarts.init(
16-
document.getElementById('dd017910cc7549a685577dfb3ef0e9d9'), 'white', {renderer: 'canvas'});
17-
var option_dd017910cc7549a685577dfb3ef0e9d9 = {
15+
var chart_a2d42deec7454c6887ea10adf6d09aa6 = echarts.init(
16+
document.getElementById('a2d42deec7454c6887ea10adf6d09aa6'), 'white', {renderer: 'canvas'});
17+
var option_a2d42deec7454c6887ea10adf6d09aa6 = {
1818
"animation": true,
1919
"animationThreshold": 2000,
2020
"animationDuration": 1000,
@@ -24,30 +24,15 @@
2424
"animationEasingUpdate": "cubicOut",
2525
"animationDelayUpdate": 0,
2626
"color": [
27-
"#c23531",
28-
"#2f4554",
29-
"#61a0a8",
30-
"#d48265",
31-
"#749f83",
32-
"#ca8622",
33-
"#bda29a",
34-
"#6e7074",
35-
"#546570",
36-
"#c4ccd3",
37-
"#f05b72",
38-
"#ef5b9c",
39-
"#f47920",
40-
"#905a3d",
41-
"#fab27b",
42-
"#2a5caa",
43-
"#444693",
44-
"#726930",
45-
"#b2d235",
46-
"#6d8346",
47-
"#ac6767",
48-
"#1d953f",
49-
"#6950a1",
50-
"#918597"
27+
"#5470c6",
28+
"#91cc75",
29+
"#fac858",
30+
"#ee6666",
31+
"#73c0de",
32+
"#3ba272",
33+
"#fc8452",
34+
"#9a60b4",
35+
"#ea7ccc"
5136
],
5237
"series": [
5338
{
@@ -2360,9 +2345,6 @@
23602345
"data": [
23612346
"pm2.5"
23622347
],
2363-
"selected": {
2364-
"pm2.5": true
2365-
},
23662348
"show": true,
23672349
"padding": 5,
23682350
"itemGap": 10,
@@ -2377,16 +2359,23 @@
23772359
"axisPointer": {
23782360
"type": "line"
23792361
},
2362+
"showContent": true,
2363+
"alwaysShowContent": false,
2364+
"showDelay": 0,
2365+
"hideDelay": 100,
23802366
"textStyle": {
23812367
"fontSize": 14
23822368
},
2383-
"borderWidth": 0
2369+
"borderWidth": 0,
2370+
"padding": 5
23842371
},
23852372
"title": [
23862373
{
23872374
"text": "\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf",
2375+
"target": "blank",
23882376
"subtext": "data from PM25.in",
23892377
"sublink": "http://www.pm25.in",
2378+
"subtarget": "blank",
23902379
"left": "center",
23912380
"padding": 5,
23922381
"itemGap": 10,
@@ -2536,8 +2525,8 @@
25362525
}
25372526
}
25382527
};
2539-
chart_dd017910cc7549a685577dfb3ef0e9d9.setOption(option_dd017910cc7549a685577dfb3ef0e9d9);
2540-
var bmap = chart_dd017910cc7549a685577dfb3ef0e9d9.getModel().getComponent('bmap').getBMap();
2528+
chart_a2d42deec7454c6887ea10adf6d09aa6.setOption(option_a2d42deec7454c6887ea10adf6d09aa6);
2529+
var bmap = chart_a2d42deec7454c6887ea10adf6d09aa6.getModel().getComponent('bmap').getBMap();
25412530
</script>
25422531
</body>
25432532
</html>

BMap/air_quality_baidu_map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def convert_data():
402402

403403

404404
(
405-
BMap(init_opts=opts.InitOpts(width="1400px", height="800px"))
405+
BMap(init_opts=opts.InitOpts(width="1200px", height="800px"))
406406
.add(
407407
type_="effectScatter",
408408
series_name="pm2.5",

BMap/bmap_base.html

Lines changed: 32 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Awesome-pyecharts</title>
6-
<script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
7-
<script type="text/javascript" src="https://assets.pyecharts.org/assets/bmap.min.js"></script>
6+
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
7+
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/bmap.min.js"></script>
88
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=FAKE_AK"></script>
99
<script type="text/javascript" src="https://api.map.baidu.com/getscript?v=2.0&ak=FAKE_AK"></script>
1010

1111
</head>
1212
<body>
13-
<div id="dceb7c26cdb24ec4889888de83627699" class="chart-container" style="width:900px; height:500px;"></div>
13+
<div id="b73b5dd5d7ac47f1912bdc0745b8aae9" class="chart-container" style="width:900px; height:500px;"></div>
1414
<script>
15-
var chart_dceb7c26cdb24ec4889888de83627699 = echarts.init(
16-
document.getElementById('dceb7c26cdb24ec4889888de83627699'), 'white', {renderer: 'canvas'});
17-
var option_dceb7c26cdb24ec4889888de83627699 = {
15+
var chart_b73b5dd5d7ac47f1912bdc0745b8aae9 = echarts.init(
16+
document.getElementById('b73b5dd5d7ac47f1912bdc0745b8aae9'), 'white', {renderer: 'canvas'});
17+
var option_b73b5dd5d7ac47f1912bdc0745b8aae9 = {
1818
"animation": true,
1919
"animationThreshold": 2000,
2020
"animationDuration": 1000,
@@ -24,30 +24,15 @@
2424
"animationEasingUpdate": "cubicOut",
2525
"animationDelayUpdate": 0,
2626
"color": [
27-
"#c23531",
28-
"#2f4554",
29-
"#61a0a8",
30-
"#d48265",
31-
"#749f83",
32-
"#ca8622",
33-
"#bda29a",
34-
"#6e7074",
35-
"#546570",
36-
"#c4ccd3",
37-
"#f05b72",
38-
"#ef5b9c",
39-
"#f47920",
40-
"#905a3d",
41-
"#fab27b",
42-
"#2a5caa",
43-
"#444693",
44-
"#726930",
45-
"#b2d235",
46-
"#6d8346",
47-
"#ac6767",
48-
"#1d953f",
49-
"#6950a1",
50-
"#918597"
27+
"#5470c6",
28+
"#91cc75",
29+
"#fac858",
30+
"#ee6666",
31+
"#73c0de",
32+
"#3ba272",
33+
"#fc8452",
34+
"#9a60b4",
35+
"#ea7ccc"
5136
],
5237
"series": [
5338
{
@@ -61,55 +46,55 @@
6146
"value": [
6247
113.26653,
6348
23.132191,
64-
137
49+
27
6550
]
6651
},
6752
{
6853
"name": "\u5317\u4eac",
6954
"value": [
7055
116.407526,
7156
39.90403,
72-
114
57+
102
7358
]
7459
},
7560
{
7661
"name": "\u4e0a\u6d77",
7762
"value": [
7863
121.473701,
7964
31.230416,
80-
89
65+
52
8166
]
8267
},
8368
{
8469
"name": "\u6c5f\u897f",
8570
"value": [
8671
115.909228,
8772
28.675696,
88-
63
73+
43
8974
]
9075
},
9176
{
9277
"name": "\u6e56\u5357",
9378
"value": [
9479
112.98381,
9580
28.112444,
96-
145
81+
112
9782
]
9883
},
9984
{
10085
"name": "\u6d59\u6c5f",
10186
"value": [
10287
120.152791,
10388
30.267446,
104-
75
89+
48
10590
]
10691
},
10792
{
10893
"name": "\u6c5f\u82cf",
10994
"value": [
11095
118.763232,
11196
32.061707,
112-
55
97+
124
11398
]
11499
}
115100
],
@@ -126,9 +111,6 @@
126111
"data": [
127112
"bmap"
128113
],
129-
"selected": {
130-
"bmap": true
131-
},
132114
"show": true,
133115
"padding": 5,
134116
"itemGap": 10,
@@ -143,15 +125,22 @@
143125
"axisPointer": {
144126
"type": "line"
145127
},
128+
"showContent": true,
129+
"alwaysShowContent": false,
130+
"showDelay": 0,
131+
"hideDelay": 100,
146132
"formatter": function (params) { return params.name + ' : ' + params.value[2]; },
147133
"textStyle": {
148134
"fontSize": 14
149135
},
150-
"borderWidth": 0
136+
"borderWidth": 0,
137+
"padding": 5
151138
},
152139
"title": [
153140
{
154141
"text": "BMap-\u57fa\u672c\u793a\u4f8b",
142+
"target": "blank",
143+
"subtarget": "blank",
155144
"padding": 5,
156145
"itemGap": 10
157146
}
@@ -164,8 +153,8 @@
164153
"roam": true
165154
}
166155
};
167-
chart_dceb7c26cdb24ec4889888de83627699.setOption(option_dceb7c26cdb24ec4889888de83627699);
168-
var bmap = chart_dceb7c26cdb24ec4889888de83627699.getModel().getComponent('bmap').getBMap();
156+
chart_b73b5dd5d7ac47f1912bdc0745b8aae9.setOption(option_b73b5dd5d7ac47f1912bdc0745b8aae9);
157+
var bmap = chart_b73b5dd5d7ac47f1912bdc0745b8aae9.getModel().getComponent('bmap').getBMap();
169158
</script>
170159
</body>
171160
</html>

0 commit comments

Comments
 (0)