echarts-bot[bot] commented on issue #18914:
URL: https://github.com/apache/echarts/issues/18914#issuecomment-1643570790

   @zhouzhili It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] Can the horizontal bar chart set the left starting point from 10
   
   **BODY**
   
   ### What problem does this feature solve?
   
   I have a horizontal histogram which has a background border, but currently I 
can't configure the spacing between the histogram and the left border, is there 
any way to set it?
   My options are as follows:
   ```js
   option = {
     xAxis: {
       type: 'value',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
     },
     yAxis: {
       type: 'category',
       show:false,
     },
     series: [
       {
         name:'bar',
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar',
         barWidth:10,
         itemStyle: {
                                borderRadius: 5, 
                        },
       },
       {
         name:'bg',
         data: [200, 200, 200, 200, 200, 200, 200],
         type: 'bar',
         barWidth:15,
         barGap: '-125%',
         itemStyle: {
                                borderRadius: 5,
                                color:'rgba(0,0,0,0)',
                                borderColor:'green'
                        },
                        z:-1
       }
     ]
   };
   ```
   Examples online are as follows:
   https://codepen.io/zhili124/pen/XWyYgWE
   
![image](https://github.com/apache/echarts/assets/14259932/f580f5c3-66de-4a9f-964c-029f538a8474)
   The desired effect is that there is a certain spacing between the blue 
pillar and the left side of the green border
   
   ### What does the proposed API look like?
   
   For example, bar can be set to 'offset:[10,10]', or something else that can 
be implemented
   </details>


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