MI-Class opened a new issue #8148: 输入“2018-04-13 
08:52:12.197587”,echarts画出的时间是08:55
URL: https://github.com/apache/incubator-echarts/issues/8148
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   这种时间格式  “2018-04-13 08:52:12.197587”  在Y轴type为time 中显示的时间为2018-04-13 08:55
   
   
   
   
   ### Version & Environment [版本及环境]      echarts 源代码
   + ECharts version [ECharts 版本]:                   4.04
   + Browser version [浏览器类型和版本]:          火狐,谷歌
   + OS Version [操作系统类型和版本]:
   window10 1607
   
   
   
   
   ### Expected behaviour [期望结果]
   我在文档中看到  2018-04-13 08:52:12.197587   这种的时间格式并不被支持,文档中支持的时间格式为“2018-04-13 
08:52:12.197”,希望能够支持毫秒有6未的,毕竟.net中使用DateTime.Now获取的就是这种时间格式,如果不能支持这种时间格式就直接报错不能绘图
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   var data=[["2018-04-13 08:12:08.435691","21.88"]
   ,["2018-04-13 08:52:12.197587","22.19"]];
   option = {
    title: {
                       text: '室内温度'
                   },
                   tooltip: {
                       trigger: 'axis',
                       axisPointer: {
                           animation: false
                       }
                   },
                   xAxis: {
                       type: 'time',
                       splitLine: {
                           show: false
                       }
                   },
                   yAxis: {
                       type: 'value',
                       min:20,
                       boundaryGap: [0, '100%'],
                       splitLine: {
                           show: false
                       }
                   },
                   series: [{
                       name: '温度',
                       type: 'line',
                       showSymbol: false,
                       hoverAnimation: false,
                       data: data
                   }]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to