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/06/28 03:36:11 UTC
[GitHub] [echarts] ethannguyen276 commented on issue #15240: Time axis ticks are divided wrongly in miliseconds
ethannguyen276 commented on issue #15240:
URL: https://github.com/apache/echarts/issues/15240#issuecomment-869325174
> Please provide x value in `series.data`, for example;
>
> ```js
> series: {
> data: [
> ['2019-01-29T16:00:00 07:00', 150],
> ['2019-01-29T16:00:30 07:00', 230],
> ...
> }
> ```
I used this new options object:
```
option = {
xAxis: {
type: 'time',
min: "2019-01-29T16:00:00.000Z",
max: "2019-01-29T16:03:00.000Z",
axisLabel: {
rotate: 70,
formatter: '{hh}:{mm}:{ss} {SSS}\n{dd}-{MM}-{yyyy}'
}
},
yAxis: {
type: 'value'
},
series: [{
data: [
['2019-01-29T16:00:00.599Z', 150],
['2019-01-29T16:01:30.399Z', 230],
['2019-01-29T16:03:00.000Z', 100],
],
type: 'line'
}]
};
```
The issue still happens:

--
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