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/06/19 01:25:08 UTC

[GitHub] [incubator-echarts] Sinosaurus opened a new issue #12826: 使用 type=gauge 时,无法使用 xAxis

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


   ### Version
   4.8.0
   
   ### Reproduction link
   [https://codepen.io/sinosaurus/pen/mdVROmx](https://codepen.io/sinosaurus/pen/mdVROmx)
   
   ### Steps to reproduce
   ```
   var option = {
         grid: {
           // left: 0,
           show: true
         },
       // TODO: 此处添加了xAxis
          xAxis: {
            show: true,
            offset: 0
          },
         axisLine: {
           show: true,
           lineStyle: {
             color: 'red',
             width: 4,
           }
         },
         tooltip: {
           formatter: '{a} <br/>{b} : {c}%'
         },
         toolbox: {
           feature: {
             restore: {},
             saveAsImage: {}
           }
         },
         series: [{
           name: '业务指标',
           type: 'gauge',
           detail: {
             formatter: '{value}%'
           },
           data: [{
             value: 50,
             name: '完成率'
           }]
         }]
       };
   ```
   
   ### What is expected?
   可以控制图表距离x轴的位置
   
   ### What is actually happening?
   > 报错信息
   ```
   cartesianAxisHelper.js:43 Uncaught TypeError: axis.getAxesOnZeroOf is not a function
       at layout$1 (cartesianAxisHelper.js:43)
       at ExtendedClass.render (CartesianAxisView.js:62)
       at echarts.js:1549
       at Array.forEach (<anonymous>)
       at each$1 (util.js:295)
       at renderComponents (echarts.js:1547)
       at render (echarts.js:1530)
       at ECharts.update (echarts.js:891)
       at ECharts.echartsProto.setOption (echarts.js:392)
       at index.html:63
   ```
   简单看了下源码,`getAxesOnZeroOf` 在 原型中 `null` 并不是一个方法,或者说没有走到去挂载`getAxesOnZeroOf`那儿就报错了
   
   ---
   类似的问题,有好多,但是并没有有效解决我的需求。这应该是一个很容易复现的bug,在使用 `xAxis`时,并没有明确需要的参数,因而无法有效解决了
   
   <!-- 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.

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] Ovilia closed issue #12826: 使用 type=gauge 时,无法使用 xAxis

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #12826:
URL: https://github.com/apache/incubator-echarts/issues/12826


   


----------------------------------------------------------------
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 #12826: 使用 type=gauge 时,无法使用 xAxis

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


   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] Sinosaurus commented on issue #12826: 使用 type=gauge 时,无法使用 xAxis

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


   @yanheSu 是我使用失误,之前我准备通过改变图标距离边缘距离,当我通过设置 `grid`值时,还是有一遍距离。虽然可以通过`radius`可以设置,但是若不是整圆却还是有一点安全距离,因而想通过`xAxis `来设置,结果就报错了而已


----------------------------------------------------------------
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] yanheSu commented on issue #12826: 使用 type=gauge 时,无法使用 xAxis

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


   不是特别明白对于 仪表类型 的图表,为什么会需要有 x 轴的定义,是需要进行仪表图表的分组分区组合?还是需要图表在 grid 中 的定位?还是指图表中的 标签 位置?🧐


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