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 2021/09/02 10:28:51 UTC
[GitHub] [echarts] Youmyin opened a new issue #15659: 折线图Y轴设置HH:mm形式的数据时,无法正常显示
Youmyin opened a new issue #15659:
URL: https://github.com/apache/echarts/issues/15659
### Version
5.1.2
### Reproduction link
[https://codesandbox.io/s/quirky-currying-25jdz?file=/src/App.tsx](https://codesandbox.io/s/quirky-currying-25jdz?file=/src/App.tsx)
### Steps to reproduce
x轴的数据为:['周一', '周二', '周三', '周四', '周五']
y轴的数据为一组时间字符串: ['08:27', '08:15', '08:45', '08:10', '08:29']
我想要做成一个折线图,如果yAxis的type设置为category,则显示是一条递增直线,y轴数据错乱
将y轴数据线转换成数值再使用formatter转回HH:mm形式的字符串
1、如果yAxis的type设置为value,数值显示正确,但是折线过于集中在一个数据段,yAxis的label中出现很多不必要的数据
2、如果yAxis的type设置为time,图像显示比较正常,但是y轴label消失
### What is expected?
y轴数据显示正常,范围和刻度数也正常,比如这里y轴数据为['08:27', '08:15', '08:45', '08:10', '08:29'],那么希望y轴label大致为[07:30,08:00,08:30,09:00,09:30]均匀显示形式
### What is actually happening?
如复现所示
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
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] Youmyin closed issue #15659: 折线图Y轴设置HH:mm形式的数据时,无法正常显示
Posted by GitBox <gi...@apache.org>.
Youmyin closed issue #15659:
URL: https://github.com/apache/echarts/issues/15659
--
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] Youmyin commented on issue #15659: 折线图Y轴设置HH:mm形式的数据时,无法正常显示
Posted by GitBox <gi...@apache.org>.
Youmyin commented on issue #15659:
URL: https://github.com/apache/echarts/issues/15659#issuecomment-912273611
已解决
--
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 #15659: 折线图Y轴设置HH:mm形式的数据时,无法正常显示
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15659:
URL: https://github.com/apache/echarts/issues/15659#issuecomment-911509699
--
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