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/07/21 11:25:05 UTC

[GitHub] [echarts] Lee324 opened a new issue #15394: 当yAxis的type为time类型,xAxis的type类型为value时,横向柱状图生成失败

Lee324 opened a new issue #15394:
URL: https://github.com/apache/echarts/issues/15394


   
   ![W YUAOW2 XW~O)A GK46QO](https://user-images.githubusercontent.com/22317901/126480063-fd413a58-3ddf-4942-a5a5-af087e4812d8.png)
   ### Version
   5.1.2
   
   ### Steps to reproduce
   详见截图
   option ={
   				"title":{
   					"text":"J成烧工段",
   					"left":8,
   					"textStyle":{"fontSize":18}
   				},
   				"tooltip":{"trigger":"axis","confine":true},
   				"legend":{"right":"center","top":40,"data":["时间稼动率","OEE"]},
   				"yAxis":[{
   					"type":"time",
   				}
   				],
   				"xAxis":[{
   					"type":"value",
   				}
   				],
   				"series":[{
   					"name":"时间稼动率",
   					"type":"bar",
   					"data":[{
   						"name":"2021-04-06 07:00",
   						"value":["2021-04-06 07:00",71.4]
   					},{
   						"name":"2021-04-06 08:00",
   						"value":["2021-04-06 08:00",71.4]
   					},
   				]
   				},
   	]}
   ### What is expected?
   当yAxis为time类型轴时,能正常生成横向柱状图
   
   ### What is actually happening?
   yAxis为time类型轴时,横向柱状图无法生成,且tooltip框内显示的日期为1970-01-01 08:00:00
   
   <!-- 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] susiwen8 commented on issue #15394: 当yAxis的type为time类型,xAxis的type类型为value时,横向柱状图生成失败

Posted by GitBox <gi...@apache.org>.
susiwen8 commented on issue #15394:
URL: https://github.com/apache/echarts/issues/15394#issuecomment-885647589


   Switch series data to 
   ```js					
   "data":[{
   	"name":"2021-04-06 07:00",
   	"value":[71.4, "2021-04-06 07:00"]
     },{
   	"name":"2021-04-06 08:00",
   	"value":[71.4, "2021-04-06 08:00"]
   }]
   ```


-- 
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] Lee324 commented on issue #15394: 当yAxis的type为time类型,xAxis的type类型为value时,横向柱状图生成失败

Posted by GitBox <gi...@apache.org>.
Lee324 commented on issue #15394:
URL: https://github.com/apache/echarts/issues/15394#issuecomment-885652683


   > 将系列数据切换到
   > 
   > ```js
   > “数据”:[ { 
   > 	“名称”:“2021-04-06 07:00” ,
   > 	“值”:[ 71.4 , “2021-04-06 07:00” ] 
   >   } ,{ 
   > 	“名称”:“2021-04” -06 08:00" , 
   > 	"value" : [ 71.4 ,  "2021-04-06 08:00" ] 
   > } ]
   > ```
   
   OK,谢谢解决我的问题。


-- 
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 #15394: 当yAxis的type为time类型,xAxis的type类型为value时,横向柱状图生成失败

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15394:
URL: https://github.com/apache/echarts/issues/15394#issuecomment-884115456






-- 
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] susiwen8 closed issue #15394: 当yAxis的type为time类型,xAxis的type类型为value时,横向柱状图生成失败

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #15394:
URL: https://github.com/apache/echarts/issues/15394


   


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