You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "go2fofo (via GitHub)" <gi...@apache.org> on 2024/12/31 08:52:19 UTC
[I] 柱状图数据为0视图会占位 [echarts]
go2fofo opened a new issue, #20633:
URL: https://github.com/apache/echarts/issues/20633
### What problem does this feature solve?

{
"label": {
"show": true
},
"tooltip": {
"trigger": "axis",
"axisPointer": {
"type": "shadow"
}
},
"legend": {
"data": [
"微博-近30天阅读量",
"抖音-近30天新增作品数"
],
"top": 10,
"type": "scroll",
"width": "80%"
},
"grid": {
"left": "3%",
"right": "4%",
"bottom": "3%",
"containLabel": true,
"top": "60"
},
"xAxis": {
"type": "category",
"data": [
"周深",
"周杰伦"
],
"axisLabel": {
"interval": 0,
"rotate": 30
}
},
"yAxis": {
"type": "value",
"axisLabel": {}
},
"series": [
{
"name": "抖音-近30天新增作品数",
"type": "bar",
"data": [
{
"topicName": "#周深",
"topicId": 225,
"platformId": 0,
"dataMap": {
"1": 12,
"6": 22
},
"showName": "抖音-近30天新增作品数",
"key": "周深",
"indicator": "1",
"value": 12
},
{
"topicName": "#周杰伦",
"topicId": 224,
"platformId": 0,
"dataMap": {
"1": 45,
"6": 33
},
"showName": "抖音-近30天新增作品数",
"key": "周杰伦",
"indicator": "1",
"value": 45
}
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
},
{
"name": "抖音-近30天新增作品数",
"type": "bar",
"data": [
{
"topicName": "#周深222",
"topicId": 225,
"platformId": 0,
"dataMap": {
"1": 12,
"6": 69
},
"showName": "抖音-近30天新增作品数",
"key": "周深",
"indicator": "1",
"value": 12
},
0
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
},
{
"name": "抖音-近30天新增作品数",
"type": "bar",
"data": [
{
"topicName": "#周深111",
"topicId": 227,
"platformId": 0,
"dataMap": {
"1": 32,
"6": 44
},
"showName": "抖音-近30天新增作品数",
"key": "周深",
"indicator": "1",
"value": 32
},
0
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
},
{
"name": "微博-近30天阅读量",
"type": "bar",
"data": [
{
"topicName": "周深",
"topicId": 5648,
"platformId": 2,
"dataMap": {
"1": 55,
"6": 66
},
"showName": "微博-近30天阅读量",
"key": "周深",
"indicator": "6",
"value": 66
},
{
"topicName": "周杰伦",
"topicId": 5818,
"platformId": 2,
"dataMap": {
"1": 30,
"6": 65
},
"showName": "微博-近30天阅读量",
"key": "周杰伦",
"indicator": "6",
"value": 65
}
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
},
{
"name": "微博-近30天阅读量",
"type": "bar",
"data": [
{
"topicName": "周深演唱会",
"topicId": 5649,
"platformId": 2,
"dataMap": {
"1": 88,
"6": 77
},
"showName": "微博-近30天阅读量",
"key": "周深",
"indicator": "6",
"value": 77
},
{
"topicName": "周杰伦演唱会",
"topicId": 5819,
"platformId": 2,
"dataMap": {
"1": 0,
"6": 34
},
"showName": "微博-近30天阅读量",
"key": "周杰伦",
"indicator": "6",
"value": 34
}
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
},
{
"name": "微博-近30天阅读量",
"type": "bar",
"data": [
0,
{
"topicName": "周杰伦演唱会11",
"topicId": 5819,
"platformId": 2,
"dataMap": {
"1": 0,
"6": 59
},
"showName": "微博-近30天阅读量",
"key": "周杰伦",
"indicator": "6",
"value": 59
}
],
"itemStyle": {
"borderRadius": [
4,
4,
0,
0
]
}
}
]
}
### What does the proposed API look like?
我希望不占位
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] 柱状图数据为0视图会占位 [echarts]
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #20633:
URL: https://github.com/apache/echarts/issues/20633#issuecomment-2566253503
@go2fofo 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
If the histogram data is 0, the view will occupy a place
</details>
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] 柱状图数据为0视图会占位 [echarts]
Posted by "go2fofo (via GitHub)" <gi...@apache.org>.
go2fofo commented on issue #20633:
URL: https://github.com/apache/echarts/issues/20633#issuecomment-2567265023
解决了 ,参考https://juejin.cn/post/7455111267360112655
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org