-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] 多grid图表,series的第六个元素type不能是bar 改成折线图就可以 #20536
Comments
@shaoshuangxi It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗 TRANSLATEDTITLE [Bug] For multi-grid charts, the sixth element type of the series cannot be bar, and it can be changed to a line chart BODY Versione.g. 5.5.1 Link to Minimal ReproductionSteps to Reproduceoption ={ Current BehaviorExpected BehaviorEnvironment'''Markdown
|
bug confirmed, workaround is to switch places of the last two series - Demo |
Firstly, thank you for responding to my question. However, the options here are spliced using a program, and replacing the element order of the series in the end seems unreasonable. Moreover, the length of the elements here is not missing, and it is uncertain which grid they will be displayed on. Therefore, the gridindex of the series elements is also uncertain |
Maybe try separate charts with connect. See example code. |
Version
e.g. 5.5.1
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=area-time-axis&code=PYBwLglsB2AEC8BvAsAKFh2AiARgQwGMBrAcwCdgBXaAEwGFgAbYMrALmywBo1NsCmLdrADavPpiwBiAGIyADIvndxE7FMVzFK9GvVL5cnXvValxvdLlmLa6YoAc5nrruyFhmbYn2lT73zSTk7aLiZBfsphlhrywVGqPu4AggCsoYmBsslOAOwATAGSUvnyAEL5yclFGEEyZXQOXtFuACwOAMwAIg5lNer5Mq1DzZnFinQAol0AjP3SAJytil0d8-4zrQtrLUmKZdbrAGwLJyfrM5MLnusV-feFiQC6u1iMAKYk77TCYq4SKH-4QgNGEWDA7wAtiB3mQ8GBKGR3v1AjR4XhfmMTLVAABygCEdQCUdoAyvRRlkAMXKEkm7bGSQCQcpTSXZANtqDOpNOwgBS5VlY7FYQC2itygeysIBgOUF7J8gGtFcUSySAXTkGTy-C8lZIPgAzMBggjfCGsNl2MCgMEzDoAU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w0d6E2sDXK-Bh2Gu_0FWqypp8qwJtymemkF24unOjddoP2ly32lyjOusOCNS1utQUOoZ8OyOly6R1oDBvQOO5O6q9uhy0ZpS9Z-6zZhy7Z9avpgapZt6rp7EIuhSw5usLLeNCu52tpqsHpjS45iQZu_pyZz6_ZmkTuoGhJh0x-MMKEJxm-_6PFMgEezGce10yjUoV-mF9W05iUX5vQEplC_0Pxte7SZByjFJiWtJ3emWzJqJk-uwOJwWpFzsoJmJyQUJjJp-hW4l3JhmD-9WopkwFF97Mp4UUJ_SRE8EGpiB-xxCaBiC1y5pm2ws0V9pmKRK2UTYBFvQTYZ5vgU0T5s5joVVkwFV4u9V7VjVhVnVhSg1uyo1y8LVw1vVtQM141i1iQK101k1q5h1wup12Vl1iUO1x1m15Vt19kD151r1zAP111gNjAIN91n1t2iNtVkNosqNzVuN_VmNsN31hNy11N219VnumQ0x8x08kQqx9GnsOx7Gx-dF-c4FrFy8HFnwGlveiJw-ol1-2JvJslll1-6twIWtglull-ql2oUlgpzejW1edlpjLMwZXWvF7AJKQcflnsU2-py6KythrAFpwsldyt9aru6qndyq3d3q_dgaw9-q49pS09hy89-6y9rdvd29g9u9o9h9k9p9s9l9i9t9q9j9m9-9n9garN4EPukYgenwYe0eyFmV6e2F-VmkaD7EcliQUdvs0tsDVe8tp1TdqsDt6lqdsJutwl-lptyQUloWwp9tvt7ALtx-yJgj8j1dltwdze1l5F7Wri_4X-z0AAbg46AA
Steps to Reproduce
option ={
"backgroundColor": "",
"color": [
"#FF0000",
"#00FF00",
"#0000FF",
"#FF0000",
"#FFFF00",
"#8000",
"#FF00FF",
"#80",
"#808000",
"#800080",
"#8080",
"#FFA500",
"#FA8072",
"#20B2AA",
"#8FBC8F",
"#483D8B",
"#2F4F4F",
"#00CED1",
"#9400D3",
"#FF1493",
"#00BFFF",
"#696969",
"#1E90FF",
"#B22222"
],
"legend": [
{
"id": "temperature",
"data": [
"一层温度",
"二层温度",
"三层温度",
"四层温度",
"五层温度",
"六层温度",
"七层温度",
"八层温度",
"九层温度"
],
"left": "center",
"top": "13%",
"orient": "horizontal"
},
{
"id": "humidity",
"data": [
"一层湿度",
"二层湿度",
"三层湿度",
"四层湿度",
"五层湿度",
"六层湿度",
"七层湿度",
"八层湿度",
"九层湿度"
],
"left": "center",
"top": "29%",
"orient": "horizontal"
},
{
"id": "trtemperature",
"data": [
"一层土壤温度",
"二层土壤温度",
"三层土壤温度",
"四层土壤温度",
"五层土壤温度"
],
"left": "center",
"top": "45%",
"orient": "horizontal"
},
{
"id": "trhumidity",
"data": [
"一层土壤湿度",
"二层土壤湿度",
"三层土壤湿度",
"四层土壤湿度",
"五层土壤湿度"
],
"left": "center",
"top": "61%",
"orient": "horizontal"
},
{
"id": "gz",
"data": [
"要素1",
"要素2",
"要素3",
"要素4"
],
"left": "center",
"top": "77%",
"orient": "horizontal"
},
{
"id": "ys",
"data": [
"风速",
"雨量",
"土壤含水率"
],
"left": "center",
"top": "93%",
"orient": "horizontal"
}
],
"animation": false,
"toolbox": {
"show": false
},
"tooltip": {
"trigger": "axis",
"axisPointer": {
"type": "cross"
},
"borderWidth": 1,
"borderColor": "#ccc",
"padding": 10,
"textStyle": {
"color": "#000"
}
},
"axisPointer": {
"link": [
{
"xAxisIndex": "all"
}
],
"label": {
"backgroundColor": "#777"
}
},
"brush": {
"xAxisIndex": "all",
"brushLink": "all",
"outOfBrush": {
"colorAlpha": 0.1
}
},
"visualMap": {
"show": false,
"seriesIndex": 5,
"dimension": 2,
"pieces": [
{
"value": 1,
"color": "#ec0000"
},
{
"value": -1,
"color": "#00da3c"
}
]
},
"grid": [
{
"left": "5%",
"right": "8%",
"top": "0%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
},
{
"left": "5%",
"right": "8%",
"top": "16%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
},
{
"left": "5%",
"right": "8%",
"top": "32%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
},
{
"left": "5%",
"right": "8%",
"top": "48%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
},
{
"left": "5%",
"right": "8%",
"top": "64%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
},
{
"left": "5%",
"right": "8%",
"top": "80%",
"height": "12%",
"width": "92%",
"show": true,
"containLabel": true,
"borderColor": "rgba(0, 0, 0, 0.1)",
"backgroundColor": "rgba(0, 0, 0, 0.1)"
}
],
"xAxis": [
{
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"axisTick": {
"show": false
},
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"gridIndex": 0
},
{
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"axisTick": {
"show": false
},
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"gridIndex": 1
},
{
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"axisTick": {
"show": false
},
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"gridIndex": 2
},
{
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"axisTick": {
"show": false
},
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"gridIndex": 3
},
{
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"axisTick": {
"show": false
},
"splitLine": {
"show": false
},
"axisLabel": {
"show": false
},
"gridIndex": 4
},
{
"type": "category",
"show": true,
"splitNumber": 1,
"data": [
"2024-10-02",
"2024-10-03",
"2024-10-04",
"2024-10-05",
"2024-10-06",
"2024-10-07",
"2024-10-08",
"2024-10-09",
"2024-10-10",
"2024-10-11",
"2024-10-12",
"2024-10-13",
"2024-10-14",
"2024-10-15",
"2024-10-16",
"2024-10-17",
"2024-10-18",
"2024-10-19",
"2024-10-20",
"2024-10-21",
"2024-10-22",
"2024-10-23",
"2024-10-24",
"2024-10-25",
"2024-10-26",
"2024-10-27",
"2024-10-28",
"2024-10-29",
"2024-10-30",
"2024-10-31",
"2024-11-01",
"2024-11-02",
"2024-11-03",
"2024-11-04",
"2024-11-05",
"2024-11-06",
"2024-11-07"
],
"boundaryGap": false,
"axisLine": {
"onZero": false,
"show": true,
"lineStyle": {
"color": "#D9D9D9"
}
},
"gridIndex": 5
}
],
"yAxis": [
{
"scale": true,
"gridIndex": 0,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
},
{
"scale": true,
"gridIndex": 1,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
},
{
"scale": true,
"gridIndex": 2,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
},
{
"scale": true,
"gridIndex": 3,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
},
{
"scale": true,
"gridIndex": 4,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
},
{
"scale": true,
"gridIndex": 5,
"splitNumber": 1,
"splitLine": {
"show": false
},
"splitArea": {
"show": true
},
"min":0
}
],
"dataZoom": [
{
"type": "inside",
"xAxisIndex": [
0,
1,
2,
3,
4,
5
],
"start": 0,
"end": 100
},
{
"show": true,
"xAxisIndex": [
0,
1,
2,
3,
4,
5
],
"type": "slider",
"top": "96%",
"start": 0,
"end": 100
}
],
"series": [
{
"name": "一层温度",
"type": "line",
"xAxisIndex": 0,
"yAxisIndex": 0,
"data": [
22,
22.2,
23.5,
24.5,
25.5,
26.5,
24.5,
23.5,
22.5,
24.5,
25.5,
21.5,
31.5,
31.5,
22.5,
24.5,
25.5,
26.5,
27.5,
28.5,
29.5,
20.5,
22.5,
23.5,
24.5,
25.5,
26.5,
22.5,
23.5,
24.5,
25.5,
31.5,
23.5,
24.5,
25.5,
26.5,
24.5
],
"smooth": true,
"symbol": "none",
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
},
{
"name": "一层湿度",
"type": "bar",
"xAxisIndex": 1,
"yAxisIndex": 1,
"data": [
50,
51,
17,
48,
49,
46,
49,
45,
41,
49,
46,
47,
48,
45,
42,
41,
29,
28,
29,
28,
29,
28,
27,
22,
20,
16,
17,
18,
60,
53,
51,
52,
50,
41,
28,
31,
30
],
"itemStyle": {
"borderRadius": [
20,
20,
0,
0
]
},
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
},
{
"name": "一层土壤温度",
"type": "line",
"xAxisIndex": 2,
"yAxisIndex": 2,
"data": [
22,
22.2,
23.5,
24.5,
25.5,
26.5,
24.5,
23.5,
22.5,
24.5,
25.5,
21.5,
31.5,
31.5,
22.5,
24.5,
25.5,
26.5,
27.5,
28.5,
29.5,
20.5,
22.5,
23.5,
24.5,
25.5,
26.5,
22.5,
23.5,
24.5,
25.5,
31.5,
23.5,
24.5,
25.5,
26.5,
24.5
],
"smooth": true,
"symbol": "none",
"areaStyle": {
"opacity": 0.8
},
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
},
{
"name": "一层土壤湿度",
"type": "bar",
"xAxisIndex": 3,
"yAxisIndex": 3,
"data": [
50,
51,
17,
48,
49,
46,
49,
45,
41,
49,
46,
47,
48,
45,
42,
41,
29,
28,
29,
28,
29,
28,
27,
22,
20,
16,
17,
18,
60,
53,
51,
52,
50,
41,
28,
31,
30
],
"itemStyle": {
"borderRadius": [
20,
20,
0,
0
]
},
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
},
{
"name": "要素1",
"type": "line",
"xAxisIndex": 4,
"yAxisIndex": 4,
"data": [
140,
142,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138,
138
],
"smooth": true,
"symbol": "none",
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
},
{
"name": "风速",
"type": "bar",
"xAxisIndex": 5,
"yAxisIndex": 5,
"data": [
2,
3,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"itemStyle": {
"borderRadius": [
20,
20,
0,
0
]
},
"markLine": {
"data": [
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 20
},
{
"name": "Y 轴值为 100 的水平线",
"yAxis": 40
}
]
}
}
]
};这是图表参数
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: