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 2020/07/29 17:53:46 UTC

[GitHub] [incubator-echarts] alpesh0063 opened a new issue #13043: Issue when creating bar chart with 'time' X axis

alpesh0063 opened a new issue #13043:
URL: https://github.com/apache/incubator-echarts/issues/13043


   ### Version
   4.5.0
   
   ### Steps to reproduce
   option = {
                     color: ['#62B5E5'],
                     tooltip: {
                       formatter: function (params) {
                         params = params[0];
                         //return moment(params.value[0],"x").format("ddd") + ' : ' + params.value[1];
                         var date = new Date(params.value[0]);
                           return date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear() + ' : ' + params.value[1];
                     },
                         trigger: 'axis',
                         axisPointer: {       
                             type: 'shadow'
                         }
                     },
                     grid: {
                         left: '10%',
                         right: '2%',
                         bottom: 0,
                         top: '3%',
                         containLabel: true
                     },
                     xAxis: [
                         {
                           interval:3600*24*1000,
                             type: 'time',
                             axisLabel:{
                               rotate:45,
                               formatter: (function(name){
                                 var date = new Date(name);
                           return date.getDay()
                             }),
                               show:true,
                               color:'#838383',
                               fontFamily:'Open Sans',
                               fontStyle:'normal',
                               fontWeight:'normal',
                               fontSize:8,
                               lineHeight:11
                           },
                           axisTick: {
                               show:false
                             },
                             axisLine:{
                               lineStyle:{
                                   color:'#979797',
                                   width: 0.25
                               },              
                           },
                          splitLine:{
                            show:false
                          }         
                         }
                     ],
                     yAxis: [
                         {
                             type: 'value',
                             splitNumber:2,
                             name: 'Malware Families',
                             nameLocation: 'middle',
                             nameTextStyle:{
                               color:'#838383',
                               fontFamily:'Open Sans',
                               fontStyle:'normal',
                               fontWeight:600,
                               fontSize:16,
                               lineHeight:12
                             },
                             nameGap: 30,
                             axisTick:{show:false},
                             axisLabel:{
                               show:true,
                               color:'#838383',
                               fontFamily:'Open Sans',
                               fontStyle:'normal',
                               fontWeight:'normal',
                               fontSize:8,
                               lineHeight:11
                           },
                           axisLine: {show:false},
                           splitLine: {
                             show: true,
                             lineStyle:{
                               color:'#979797',
                               width: 0.25
                           }  
                         } 
                         }
                     ],
                     series: [
                         {
                           cursor:'context-menu',
                             name: 'No of Malware Families',
                             type: 'bar',
                             barWidth: '60%',
                             data: [[1595356200000,109],[1595442600000,64],[1595529000000,94],[1595615400000,135],[1595701800000,112],[1595788200000,135],[1595874600000,0]],
                         }
                     ]
                 }
   
   
   ### What is expected?
   The X axis label should be center align.. Also we have one ''Mon'  label display at end 
   
   ### What is actually happening?
   The axis label to align to right and we have two 'mon' label display at end
   
   <!-- 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.

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] [incubator-echarts] susiwen8 commented on issue #13043: Issue when creating bar chart with 'time' X axis

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


   5.0 which will be release alpha version in few days improve time axis @Ovilia 


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

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] [incubator-echarts] echarts-bot[bot] commented on issue #13043: Issue when creating bar chart with 'time' X axis

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) 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](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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] [incubator-echarts] alpesh0063 commented on issue #13043: Issue when creating bar chart with 'time' X axis

Posted by GitBox <gi...@apache.org>.
alpesh0063 commented on issue #13043:
URL: https://github.com/apache/incubator-echarts/issues/13043#issuecomment-665674997


   ![image](https://user-images.githubusercontent.com/11247466/88808139-1db49c80-d1d0-11ea-867a-333e694dabd3.png)
   ![image](https://user-images.githubusercontent.com/11247466/88808206-302ed600-d1d0-11ea-8a67-86e78a6d69a5.png)
   


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

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