You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "cloudups (via GitHub)" <gi...@apache.org> on 2023/05/09 09:30:45 UTC
[GitHub] [echarts] cloudups opened a new issue, #18602: [Bug] Tooltip display data no match with xAxis
cloudups opened a new issue, #18602:
URL: https://github.com/apache/echarts/issues/18602
### Version
5.4.2
### Link to Minimal Reproduction
https://codepen.io/cloudups/pen/WNazoeL
### Steps to Reproduce
Mouse hovering on the xAxis, you will see it like image:

### Current Behavior
tooltip display data(time is 2023-04-01) no match with current xAxis(jul)
### Expected Behavior
tooltip display data should match with current xAxis(jul)
### 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.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] cloudups commented on issue #18602: [Bug] Tooltip display data no match with xAxis
Posted by "cloudups (via GitHub)" <gi...@apache.org>.
cloudups commented on issue #18602:
URL: https://github.com/apache/echarts/issues/18602#issuecomment-1541303829
>
ok, tanks
--
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] helgasoft commented on issue #18602: [Bug] Tooltip display data no match with xAxis
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18602:
URL: https://github.com/apache/echarts/issues/18602#issuecomment-1540659311
There are too many bars per day/month.
Axis label shows the position of the very **first** bar for the day/month. The others are added side-by-side and since each bar has a _barWidth_, they gradually move to the right further from the label. If too many, they could even spill to the next axis label.
Conclusion: bars are not a good option for this type of data. Try _scatter_, add this code at the end of yours:
```
option.series.forEach(s => {
s.type = 'scatter';
s.data = s.data.filter(a=>a[1]); // remove nulls
});
myChartEchart.setOption(option);
```

--
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] cloudups closed issue #18602: [Bug] Tooltip display data no match with xAxis
Posted by "cloudups (via GitHub)" <gi...@apache.org>.
cloudups closed issue #18602: [Bug] Tooltip display data no match with xAxis
URL: https://github.com/apache/echarts/issues/18602
--
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