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 2022/12/02 06:30:40 UTC

[GitHub] [echarts] ScWtt opened a new issue, #18009: 横向柱状图的label数字过大导致部分被截取[Bug]

ScWtt opened a new issue, #18009:
URL: https://github.com/apache/echarts/issues/18009

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1.options: {
           color: ['#053dc8'],
           tooltip: {
               show: data.showTooltip,
               trigger: 'axis',
               axisPointer: {
                   type: 'shadow'
               }
           },
           grid: {
               left: '14px',
               right: '4%',
               top: '16px',
               bottom: '0',
               containLabel: true
           },
           xAxis: {
               splitLine: {
                   lineStyle: {
                       type: 'dashed'
                   }
               }
           },
           yAxis: {
               inverse: true,
               data: data.yAxisData,
               interval: 56,
               axisTick: {
                   show:false // 不显示坐标轴刻度线
               },
               axisLine: {
                   show: false, // 不显示坐标轴线
               },
               axisLabel: {
                   margin: 24
               }
           },
           series: {
               ...data.series,
               label: {
                   show: true,
                   position: 'right',
                   valueAnimation: true,
                   formatter: (params) => {
                       if (ValueType['Money'] === data.valueType) {
                           return '¥ ' + params.value
                       } else if (ValueType['Ratio'] === data.valueType) {
                           return params.value + ' %'
                       } else {
                           return params.value
                       }
                   }
               }
           },
           dataZoom: data.dataZoom
       }
   
   ### Current Behavior
   
   ![Uploading image.png…]()
   
   
   ### Expected Behavior
   
   1.可以自动调整横坐标的位置使得数据展示完整
   2.或者有其他的解决方案使数据展示完整
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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


Re: [I] [Bug] 横向柱状图的label数字过大导致部分被截取 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18009: [Bug] 横向柱状图的label数字过大导致部分被截取
URL: https://github.com/apache/echarts/issues/18009


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


Re: [I] [Bug] 横向柱状图的label数字过大导致部分被截取 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18009:
URL: https://github.com/apache/echarts/issues/18009#issuecomment-2532889311

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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 #18009: [Bug] 横向柱状图的label数字过大导致部分被截取

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

   @ScWtt 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**
   
   [Bug] The horizontal bar chart has too large a label number that causes some to be intercepted
   
   **BODY**
   
   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. options: {
           color: ['#053dc8'],
           tooltip: {
               show: data. showTooltip,
               trigger: 'axis',
               axisPointer: {
                   type: 'shadow'
               }
           },
           grid: {
               left: '14px',
               right: '4%',
               top: '16px',
               bottom: '0',
               containLabel: true
           },
           xAxis: {
               splitLine: {
                   lineStyle: {
                       type: 'dashed'
                   }
               }
           },
           yAxis: {
               inverse: true,
               data: data.yAxisData,
               interval: 56,
               axisTick: {
                   show:false // don't show axis tick marks
               },
               axisLine: {
                   show: false, // do not display the coordinate axis
               },
               axisLabel: {
                   margin: 24
               }
           },
           series: {
               ...data.series,
               label: {
                   show: true,
                   position: 'right',
                   valueAnimation: true,
                   formatter: (params) => {
                       if (ValueType['Money'] === data. valueType) {
                           return '¥ ' + params.value
                       } else if (ValueType['Ratio'] === data. valueType) {
                           return params.value + '%'
                       } else {
                           return params.value
                       }
                   }
               }
           },
           dataZoom: data.dataZoom
       }
   
   ### Current Behavior
   
   ![Uploading image.png…]()
   
   
   ### Expected Behavior
   
   1. The position of the abscissa can be automatically adjusted to make the data display complete
   2. Or there are other solutions to make the data display complete
   
   ### Environment
   
   ```markdown
   - OS:
   -Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </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: 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


Re: [I] [Bug] 横向柱状图的label数字过大导致部分被截取 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18009:
URL: https://github.com/apache/echarts/issues/18009#issuecomment-2512836878

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


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