You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/03/11 02:28:11 UTC
[GitHub] [echarts] ITchenjian opened a new issue #16666: [Bug] 时间轴-series-bar. label显示问题
ITchenjian opened a new issue #16666:
URL: https://github.com/apache/echarts/issues/16666
### Version
5.3.1
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
option = {
yAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
xAxis: {
type: 'time',
minInterval: 3600 * 24 * 1000,
axisLabel : {
color:'#3D3F4B',
interval: 0,
showMaxLabel: true,
formatter: (value, index) => {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
return texts.join('-');
}
},
},
series: [
{
data: ['2021/12/15', '2021/12/15', '2021/12/16', '2021/12/16', '2021/12/16', '2021/12/16', '2021/12/16'],
type: 'bar',
label: {
show: true,
position: "right",
formatter: function(params) {
return '测试1';
},
color: '#000',
},
}
]
};
### Current Behavior
series-bar. label不显示(奇怪的是,将X轴于Y轴互换就可显示)
如图

X轴于Y轴互换后

### Expected Behavior
series-bar. label显示问题
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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
[GitHub] [echarts] echarts-bot[bot] commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1064709350
@ITchenjian 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**
[Bug] Timeline-series-bar. The label shows the problem
</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
[GitHub] [echarts] plainheart commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065832128
应该还是因为被系列坐标系裁切的原因,设置下 `series.clip` 为 `false` 对比下。和 #16661 问题类似,不同宽度下会出现被裁切的情况。
--
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
[GitHub] [echarts] plainheart edited a comment on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065832128
应该还是因为被系列坐标系裁切的原因,设置下 `series.clip` 为 `false` 对比下。和 #16661 问题类似,不同宽度下会出现被裁切的情况。
FYI: https://github.com/apache/echarts/blob/master/src/chart/bar/BarView.ts#L696
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065863858
@plainheart
如果设置series.clip 为 false的话,label是出来了但柱状完全超出的部分就出来了

--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065863330
@plainheart
设置series.clip 为 false的话,label是出来了但柱状完全超出的部分就出来了
![Uploading image.png…]()
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065819536
谢谢你们的回答。
谢谢你的提示 @lefex
又发现了一个奇怪了现象,窗口100%不显示、110%显示、125%不显示、150%又显示




--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065819881
以此类推,随着窗口大小的改变时有时无!
--
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
[GitHub] [echarts] pissang commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1071987351
There are several unexpected issues here:
1. The `xAxis` is a time axis. And when calculating the start point of bar. We usually starts with `0` value. Like https://github.com/apache/echarts/blob/master/src/layout/barGrid.ts#L606 did. But `0` is not a quite valid value in the time axis. So it cause a very weried shape:
```ts
{
"x": -9730657.766666668,
"y": 247.11,
"width": 9730721.866666667,
"height": 111.78
}
```
2. Even if the calculated rect shape is quite unexpected. We can still render it normally in most cases after clipped in https://github.com/apache/echarts/blob/master/src/chart/bar/BarView.ts#L691 . And there may be a precision issue when do clipping calculation which cause the bar is totoally clipped and marked to be ignore
--
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
[GitHub] [echarts] pissang commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1071987351
There are several unexpected issues here:
1. The `xAxis` is a time axis. And when calculating the start point of bar. We usually starts with `0` value. Like https://github.com/apache/echarts/blob/master/src/layout/barGrid.ts#L606 did. But `0` is not a quite valid value in the time axis. So it cause a very weried shape:
```ts
{
"x": -9730657.766666668,
"y": 247.11,
"width": 9730721.866666667,
"height": 111.78
}
```
2. Even if the calculated rect shape is quite unexpected. We can still render it normally in most cases after clipped in https://github.com/apache/echarts/blob/master/src/chart/bar/BarView.ts#L691 . And there may be a precision issue when do clipping calculation which cause the bar is totoally clipped and marked to be ignore
--
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
[GitHub] [echarts] susiwen8 commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1064938083
I have copy your options, seem ok
<img width="1440" alt="Screen Shot 2022-03-11 at 5 35 04 PM" src="https://user-images.githubusercontent.com/20318608/157841058-cf8dab04-d5df-4357-a160-f713be075941.png">
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065819919
依次类推,随着窗口大小的改变时有时无!
--
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
[GitHub] [echarts] plainheart commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1067582039
我怎么感觉禁用裁切之后的图表渲染本身就有些问题... @Ovilia @susiwen8 WDYT?
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065107037
@susiwen8 确实是这样,用的是win10和谷歌
这是我笔记本上谷歌版本

我笔记本和公司电脑都是这样,配置确实没错,我自己就是粘的这个配置

--
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
[GitHub] [echarts] ITchenjian removed a comment on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian removed a comment on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065819881
以此类推,随着窗口大小的改变时有时无!
--
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
[GitHub] [echarts] lefex edited a comment on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
lefex edited a comment on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065177635
<img width="1427" alt="image" src="https://user-images.githubusercontent.com/8437666/157889438-85f13bd5-e354-401a-98e4-f3e652f47253.png">
I can show also. Maybe you resized the browser window. Not 100% show.
--
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
[GitHub] [echarts] susiwen8 commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065183834
> @susiwen8 确实是这样,用的是win10和谷歌 这是我笔记本上谷歌版本  我笔记本和公司电脑都是这样,配置确实没错,我自己就是粘的这个配置 
Chrome 版本和你一样,但我的系统是 MacOS, 难道是 win10 的问题?
--
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
[GitHub] [echarts] lefex commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
lefex commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065177635
<img width="1427" alt="image" src="https://user-images.githubusercontent.com/8437666/157889438-85f13bd5-e354-401a-98e4-f3e652f47253.png">
I can show also.
--
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
[GitHub] [echarts] yuli-TG commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
yuli-TG commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1068568285
I have the same issue. The height of the time bar is 0.
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1064959669
谢谢你的回答
可以在这看看(替换配置,在项目也是这种情况)
https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&version=5.3.1
@susiwen8
--
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
[GitHub] [echarts] ITchenjian removed a comment on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian removed a comment on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065863330
@plainheart
设置series.clip 为 false的话,label是出来了但柱状完全超出的部分就出来了
![Uploading image.png…]()
--
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
[GitHub] [echarts] susiwen8 commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1065081686
Are you sure the option you provide is the one who can reproduce this issue? I stil can't reproduce bug by pasting your option in https://echarts.apache.org/examples/zh/editor.html?c=bar-simple&version=5.3.1
Which browser and OS you have?
--
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
[GitHub] [echarts] yuli-TG edited a comment on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
yuli-TG edited a comment on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1068568285
I have the same issue. The height of some time bars is 0.
--
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
[GitHub] [echarts] ITchenjian commented on issue #16666: [Bug] 时间轴-series-bar. label显示问题
Posted by GitBox <gi...@apache.org>.
ITchenjian commented on issue #16666:
URL: https://github.com/apache/echarts/issues/16666#issuecomment-1067551506
这种问题可有好的解决之法
--
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