You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/22 06:42:42 UTC
[GitHub] [incubator-echarts] tonytonychopper123 opened a new issue #10516: barMinHeight问题
tonytonychopper123 opened a new issue #10516: barMinHeight问题
URL: https://github.com/apache/incubator-echarts/issues/10516
条形对比图,如果第二列数据有一个为0,设置barMinHeight属性时,该数据会跑去另一边,但如果是第一列数据有0,就正常
option ={
"textStyle":{
"fontFamily":"Sans-serif"
},
"config":{
"grid":{
"top":"5%",
"left":"10%",
"right":"6%",
"bottom":"10%"
},
"color":null,
"fontFamily":"Sans-serif"
},
"xAxis":[
{
"type":"value",
"data":[
],
"axisLabel":{
},
"visible":true,
"splitNumber":6,
"min":null,
"max":null,
"title":{
"show":false,
"text":"",
"margin":0,
"rotation":0
},
"label":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"axisLine":{
"show":true,
"lineStyle":{
"color":"#333",
"width":1
}
},
"axisTick":{
"show":true,
"inside":false,
"length":5,
"lineStyle":{
"color":"#999999",
"width":1
}
},
"labels":{
"enabled":true,
"rotation":0,
"style":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"preStr":"",
"nexStr":"",
"ratio":1,
"floatlen":"auto"
},
"splitLine":{
"show":false,
"lineStyle":{
"width":1,
"type":"solid",
"color":"#ccc"
}
},
"nameTextStyle":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
}
},
{
"type":"value",
"inverse":true,
"gridIndex":1,
"data":[
],
"axisLabel":{
},
"visible":true,
"splitNumber":6,
"min":null,
"max":null,
"title":{
"show":false,
"text":"",
"margin":0,
"rotation":0
},
"label":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"axisLine":{
"show":true,
"lineStyle":{
"color":"#333",
"width":1
}
},
"axisTick":{
"show":true,
"inside":false,
"length":5,
"lineStyle":{
"color":"#999999",
"width":1
}
},
"labels":{
"enabled":true,
"rotation":0,
"style":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"preStr":"",
"nexStr":"",
"ratio":1,
"floatlen":"auto"
},
"splitLine":{
"show":false,
"lineStyle":{
"width":1,
"type":"solid",
"color":"#ccc"
}
},
"nameTextStyle":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
}
}],
"yAxis":[
{
"type":"category",
"position":"right",
"data":[
"上海",
"北京",
"广东",
"四川",
"河北",
"河南",
"江苏",
"山东",
"浙江",
"辽宁"],
"axisLabel":{
"show":false
},
"visible":true,
"title":{
"show":false,
"text":"",
"margin":0,
"rotation":0
},
"label":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"axisLine":{
"show":true,
"lineStyle":{
"color":"#333",
"width":1
}
},
"axisTick":{
"show":true,
"inside":false,
"length":5,
"lineStyle":{
"color":"#999999",
"width":1
}
},
"labels":{
"enabled":true,
"rotation":0,
"style":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"preStr":"",
"nexStr":""
},
"nameTextStyle":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"splitLine":{
"show":false,
"lineStyle":{
"width":1,
"type":"solid",
"color":"#ccc"
}
}
},
{
"type":"category",
"data":[
"上海",
"北京",
"广东",
"四川",
"河北",
"河南",
"江苏",
"山东",
"浙江",
"辽宁"],
"gridIndex":1,
"visible":true,
"title":{
"show":false,
"text":"",
"margin":0,
"rotation":0
},
"label":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"axisLine":{
"show":true,
"lineStyle":{
"color":"#333",
"width":1
}
},
"axisTick":{
"show":true,
"inside":false,
"length":5,
"lineStyle":{
"color":"#999999",
"width":1
}
},
"labels":{
"enabled":true,
"rotation":0,
"style":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"preStr":"",
"nexStr":""
},
"nameTextStyle":{
"fontSize":null,
"fontStyle":"normal",
"color":"#333",
"fontWeight":"normal",
"fontPlace":"horizen",
"textBorderColor":null
},
"splitLine":{
"show":false,
"lineStyle":{
"width":1,
"type":"solid",
"color":"#ccc"
}
}
}],
"series":[
{
"data":[
0,
15,
25,
41,
14,
11,
23,
77,
19,
20],
"type":"bar",
"name":"保费",
"markPoint":{
"data":[
]
},
"markLine":{
"data":[
]
},
"markArea":{
"data":[
]
},
"itemStyle":{
"color":null,
"barderColor":"#000",
"borderWidth":1,
"borderType":"solid"
},
"lineStyle":{
},
barMinHeight: 30
},
{
"data":[
0,
7,
10,
14,
6,
1,
2,
15,
3,
2],
"type":"bar",
"name":"保额",
"markPoint":{
"data":[
]
},
"markLine":{
"data":[
]
},
"markArea":{
"data":[
]
},
"itemStyle":{
"color":null,
"barderColor":"#000",
"borderWidth":1,
"borderType":"solid"
},
"lineStyle":{
},
"yAxisIndex":1,
"xAxisIndex":1,
"barMinHeight":50
}],
"markpoint":{
"symbol":"pin",
"symbolSize":50,
"show":false,
"position":"inside",
"fontSize":null,
"fontStyle":"normal",
"color":null,
"fontWeight":"normal",
"formatter":null
},
"markline":{
"show":true,
"position":"end",
"formatter":null,
"lineWidth":1,
"lineType":"dashed",
"straightLine":"straight"
},
"markarea":{
"show":true,
"position":"end",
"formatter":null
},
"toolbox":{
"feature":{
"saveAsImage":{
"backgroundColor":null
}
},
"right":"5%"
},
"grid":[
{
"right":"6%",
"width":"42%",
"top":"5%",
"bottom":"10%"
},
{
"left":"10%",
"width":"42%",
"top":"5%",
"bottom":"10%"
}],
"backgroundColor":null
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org