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 2019/12/25 13:41:08 UTC

[GitHub] [incubator-echarts] fengyeheng opened a new issue #11905: 仪表盘不支持刻度旋转吗?

fengyeheng opened a new issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905
 
 
   ### Version
   4.5.0
   
   ### Steps to reproduce
   option = {
       tooltip : {
           formatter: "{a} <br/>{b} : {c}%"
       },
       toolbox: {
           feature: {
               restore: {},
               saveAsImage: {}
           }
       },
       series: [
           {
               name: '业务指标',
               type: 'gauge',
               detail: {formatter:'{value}%'},
               data: [{value: 50, name: '完成率'}],
               axisLabel: {
                   formatter: '{a|{value}kg}',
                   verticalAlign: 'top',
                   rich: {
                       a: {
                           color: 'blue',
                           //旋转代码
                           rotate: 30
                       }
                   }
               }
           }
       ]
   };
   
   setInterval(function () {
       option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0;
       myChart.setOption(option, true);
   },2000);
   
   ### What is expected?
   刻度可以旋转
   
   ### What is actually happening?
   不能旋转
   
   <!-- 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


With regards,
Apache Git Services

---------------------------------------------------------------------
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] removed a comment on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] removed a comment on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-569535196
 
 
   This issue is labeled with `difficulty: easy`.
   @fengyeheng Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/incubator-echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-574128365
 
 
   > realValue
   
   数字和
   
   > > > 意思是要刻度颜色的变化,不要指针旋转,对吧?
   > > 
   > > 
   > > 不不,我说的是刻度旋转哈,你对比俩张图片的刻度,不考虑颜色的。 @Nickszy
   > 
   > 我有些不懂你的意思。
   > 建议您可以再看一下我之前给的那个用户[实例](https://gallery.echartsjs.com/editor.html?c=xgLtGmtVKw),调整最前面的`realValue`的数值,刷新看下效果。
   > 我认为这就是你需要的效果,数据可以用`data.value`进行联动
   
   刻度数字10 20 30 40 ...是和圆垂直的哈,不关心颜色。

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-569167343
 
 
   > 目前并没有支持。什么场景需要旋转呢?
   
   ![image](https://user-images.githubusercontent.com/39297582/71497050-664e5500-2891-11ea-81c5-0c8ff6240397.png)
   ![image](https://user-images.githubusercontent.com/39297582/71497053-6e0df980-2891-11ea-909d-ad877cc4521e.png)
   下边的图片是我需要的哈。

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-572549804
 
 
   > > 意思是要刻度颜色的变化,不要指针旋转,对吧?
   > 
   > 不不,我说的是刻度旋转哈,你对比俩张图片的刻度,不考虑颜色的。 @Nickszy
   
   我有些不懂你的意思。
   建议您可以再看一下我之前给的那个用户[实例](https://gallery.echartsjs.com/editor.html?c=xgLtGmtVKw),调整最前面的`realValue`的数值,刷新看下效果。
   我认为这就是你需要的效果,数据可以用`data.value`进行联动

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


With regards,
Apache Git Services

---------------------------------------------------------------------
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 #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-569535196
 
 
   This issue is labeled with `difficulty: easy`.
   @fengyeheng Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.
   
   Please have a look at [How to debug ECharts](https://github.com/apache/incubator-echarts/blob/master/CONTRIBUTING.md#how-to-debug-echarts) if you'd like to give a try. 🤓

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 100pah commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-568916394
 
 
   目前并没有支持。什么场景需要旋转呢?

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Nickszy removed a comment on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
Nickszy removed a comment on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-572382522
 
 
   我有些不懂你的意思。
   建议您可以再看一下我之前给的那个用户[实例](https://gallery.echartsjs.com/editor.html?c=xgLtGmtVKw),调整最前面的`realValue`的数值,刷新看下效果。
   我认为这就是你需要的效果,如果是的话可以再在示例中搜索一下下面的代码进行修改。
   ```
   //健康指数数值
   "data": [{
                  "name": "目标值:"+targetValue+"万吨",
                  "value": data.value }]
   
   //仪表盘颜色刻度变化
   series: ["axisLine": {
           	                "lineStyle": {
           	                    "color": [
           	                        [data.value / 100, "#BF18FE"],
           	                        [1, "#111F42"]
           	                    ],
           	                    "width": 8
           	                }
           	            }]
   ```

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-570747948
 
 
   可以修改`series-gauge.axisLine.lineStyle. color`这个属性,具体可参照此[gallery用户示例](https://gallery.echartsjs.com/editor.html?c=xgLtGmtVKw)

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] DurianWyn commented on issue #11905: 仪表盘不支持刻度旋转吗?

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


   hello  你这个问题怎么解决的?可否给个联系方式讨论一下
   


----------------------------------------------------------------
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] Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-570441895
 
 
   意思是要刻度颜色的变化,不要指针旋转,对吧?

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


With regards,
Apache Git Services

---------------------------------------------------------------------
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 #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-568900943
 
 
   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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-569467618
 
 
   > 目前并没有支持。什么场景需要旋转呢?
   
   麻烦看到了回复一下哈,因为我试了好多属性都不支持旋转。

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
fengyeheng commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-572369248
 
 
   > 意思是要刻度颜色的变化,不要指针旋转,对吧?
   
   不不,我说的是刻度旋转哈,你对比俩张图片的刻度,不考虑颜色的。 @Nickszy 

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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?

Posted by GitBox <gi...@apache.org>.
Nickszy commented on issue #11905: 仪表盘不支持刻度旋转吗?
URL: https://github.com/apache/incubator-echarts/issues/11905#issuecomment-572382522
 
 
   我有些不懂你的意思。
   建议您可以再看一下我之前给的那个用户[实例](https://gallery.echartsjs.com/editor.html?c=xgLtGmtVKw),调整最前面的`realValue`的数值,刷新看下效果。
   我认为这就是你需要的效果,如果是的话可以再在示例中搜索一下下面的代码进行修改。
   ```
   //健康指数数值
   "data": [{
                  "name": "目标值:"+targetValue+"万吨",
                  "value": data.value }]
   
   //仪表盘颜色刻度变化
   series: ["axisLine": {
           	                "lineStyle": {
           	                    "color": [
           	                        [data.value / 100, "#BF18FE"],
           	                        [1, "#111F42"]
           	                    ],
           	                    "width": 8
           	                }
           	            }]
   ```

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


With regards,
Apache Git Services

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