livb9 opened a new issue #15295:
URL: https://github.com/apache/echarts/issues/15295


   ### Version
   5.1.2
   
   ### Steps to reproduce
   Use the following code:
   
   option = {
       title: {
           text: 'rain',
           left: 'center',
           align: 'right'
       },
       tooltip: {
           trigger: 'axis',
       },
       dataZoom: [
           {
               type: 'inside',
               realtime: true,
               start: 65,
               end: 85
           }
       ],
       xAxis: [
           {
               type: 'category',
               boundaryGap: true,
               axisLine: {onZero: false},
               axisTick: {
                           alignWithLabel: true
                       },
               data: [
                   '2009/6/12 2:00', '2009/6/12 3:00', '2009/6/12 4:00', 
'2009/6/12 5:00', '2009/6/12 6:00', '2009/6/12 7:00', '2009/6/12 8:00', 
'2009/6/12 9:00', '2009/6/12 10:00', '2009/6/12 11:00', '2009/6/12 12:00', 
'2009/6/12 13:00', '2009/6/12 14:00', '2009/6/12 15:00', '2009/6/12 16:00', 
'2009/6/12 17:00', '2009/6/12 18:00', '2009/6/12 19:00', '2009/6/12 20:00', 
'2009/6/12 21:00'
               ].map(function (str) {
                   return str.replace(' ', '\n');
               })
           }
       ],
       yAxis: [
           {
               nameLocation: 'start',
               type: 'value',
           }
       ],
       series: [
           {
               name: 'rain',
               type: 'bar',
               barCategoryGap: 0,
               areaStyle: {},
               lineStyle: {
                   width: 1
               },
               data: [
                   
1.0,1.2,2.2,3.0,2.9,3.3,1.4,0.8,0.8,0.9,1.0,0.9,0.8,1.4,1.7,1.7,1.7,1.8,1.8,1.2
               ]
           }
       ]
   };
   
   ### What is expected?
   bar should be drawn between two ticks
   
   ### What is actually happening?
   bar is drawn on both sides of a tick
   
   <!-- This issue is generated by echarts-issue-helper. 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to