New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong timestamp parser when xAxis type is 'time' #13073
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions. If you are interested in the project, you may also subscribe our mail list. Have a nice day! 🍵 |
It may be not a bug but an incorrect usage. When the type of xAxis is Example: option = {
xAxis: {
type : 'time'
},
yAxis: {},
series: [{
type: 'line',
data:[
[1596507060000, 220],
[1596507160000, 182],
[1596507260000, 191]
]
}]
}; |
thanks. |
@plainheart One more question, could we use Standard Unit like seconds as default timestamp unit, instead of javascript's milliseconds? |
@wlbksy I'm afraid we can't. For a numerical timestamp, ECharts will parse it to a Date object by |
Version
4.8.0
Steps to reproduce
following timestamp is around
2020-08-04 10:11:00
What is expected?
According to https://echarts.apache.org/en/option.html#series-line.data, timestamp can be used as axis value when type is 'time'.
right parsing of x axis timestamp, timestamp is around
2020-08-04 10:11:00
What is actually happening?
08:00:00
The text was updated successfully, but these errors were encountered: