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:
us...@infra.apache.org



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

Reply via email to