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/03/10 07:01:55 UTC

[GitHub] [incubator-echarts] lengxuan2018 opened a new issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

lengxuan2018 opened a new issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。
URL: https://github.com/apache/incubator-echarts/issues/12261
 
 
   用graph做关系图,开启缩放功能后,对图形进行缩放但文字不同步进行缩放。
   开启拖拽功能后,设置的cursor属性无效。

----------------------------------------------------------------
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] pissang commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。
URL: https://github.com/apache/incubator-echarts/issues/12261#issuecomment-597600113
 
 
   文本不随节点缩放是故意设计成这样的,如果文本缩小到看不清会失去了文本显示的意义,如果文本变大了则显示效果会不好

----------------------------------------------------------------
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] lengxuan2018 commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
lengxuan2018 commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。
URL: https://github.com/apache/incubator-echarts/issues/12261#issuecomment-597968552
 
 
   有方法可以把文字设置成随图形缩放而缩放吗?

----------------------------------------------------------------
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] pissang commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。
URL: https://github.com/apache/incubator-echarts/issues/12261#issuecomment-599369882
 
 
   @lengxuan2018 目前还不行,不过如果确实有需求的话可以考虑加入配置项

----------------------------------------------------------------
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] [echarts] Drowned-fish commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
Drowned-fish commented on issue #12261:
URL: https://github.com/apache/echarts/issues/12261#issuecomment-952707728


   > > 已通过graphRoam实现:
   > > ```
   > >  // 鼠标滚轮监听放大缩小
   > >  myECharts.on('graphRoam', function(e) {
   > >     const option = that.echartsGraph.getOption(); // 获得当前option.series的zoom
   > >     const textPercent = (option.series[0].zoom - 0.8) / 0.8; // 计算比例,我设置zoom的初始值是0.8
   > >     option.series[0].label.fontSize = 9 + 9 * textPercent // 等比例计算fontSize
   > >     that.echartsGraph.setOption(option); // setOption
   > >   });
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > 同理可以加在toolbox内的自定义的“放大”和“缩小”按钮上
   > > 希望可以帮助到其他同学 😝
   > 
   > 通过这个方法监听在点击事件后仍是没有变化,能否请教一下
   
   这跟点击事件没有关系吧


-- 
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] yangqingsongGitHub commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
yangqingsongGitHub commented on issue #12261:
URL: https://github.com/apache/echarts/issues/12261#issuecomment-952688315


   > 已通过graphRoam实现:
   > 
   > ```
   >  // 鼠标滚轮监听放大缩小
   >  myECharts.on('graphRoam', function(e) {
   >     const option = that.echartsGraph.getOption(); // 获得当前option.series的zoom
   >     const textPercent = (option.series[0].zoom - 0.8) / 0.8; // 计算比例,我设置zoom的初始值是0.8
   >     option.series[0].label.fontSize = 9 + 9 * textPercent // 等比例计算fontSize
   >     that.echartsGraph.setOption(option); // setOption
   >   });
   > ```
   > 
   > 同理可以加在toolbox内的自定义的“放大”和“缩小”按钮上
   > 
   > 希望可以帮助到其他同学 😝
   
   通过这个方法监听在点击事件后仍是没有变化,能否请教一下


-- 
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] [incubator-echarts] yuanzhou3118 commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

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


   这个问题
   
   > 我使用echarts-for-react来监听graphRoam没有反应
   
   要不在echarts-for-react 提一个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.

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] Drowned-fish commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

Posted by GitBox <gi...@apache.org>.
Drowned-fish commented on issue #12261:
URL: https://github.com/apache/incubator-echarts/issues/12261#issuecomment-689979944


   我使用echarts-for-react来监听graphRoam没有反应


----------------------------------------------------------------
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] yuanzhou3118 commented on issue #12261: 在graph关系图中,文字无法缩放。鼠标移入节点的鼠标样式无法更改。

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


   已通过graphRoam实现:
   
        // 鼠标滚轮监听放大缩小
        myECharts.on('graphRoam', function(e) {
           const option = that.echartsGraph.getOption(); // 获得当前option.series的zoom
           const textPercent = (option.series[0].zoom - 0.8) / 0.8; // 计算比例,我设置zoom的初始值是0.8
           option.series[0].label.fontSize = 9 + 9 * textPercent // 等比例计算fontSize
           that.echartsGraph.setOption(option); // setOption
         });
   同理可以加在toolbox内的自定义的“放大”和“缩小”按钮上
   
   希望可以帮助到其他同学 😝


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