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/02/15 07:56:14 UTC

[GitHub] [incubator-echarts] kibbon opened a new issue #12149: How to disable auto scale/transform in graph ?

kibbon opened a new issue #12149: How to disable auto scale/transform in graph ?
URL: https://github.com/apache/incubator-echarts/issues/12149
 
 
   <!--
   Please Use https://ecomfe.github.io/echarts-issue-helper to create the issue.
   Otherwise, it will be closed immediately.
   Questions in the form of *How to use ...* should be at Stack Overflow rather than GitHub issue list.
   
   请注意,所有 issue 必须由 https://ecomfe.github.io/echarts-issue-helper/ 创建,不然将会被直接关闭。建议使用英文提问。
   Issues 中不要问「如何使用 ECharts 实现……功能」的问题,相关问题请到 SegmentFault 或 Stack Overflow 提问,详见上面的链接。
   -->
   I'm using echarts graph series to render my graph data. When I modify the source graph data (such as filtering) and re-render it, the graph will automaticlly  trigger scale/transform animation to fix the viewport. How to disable this feature?  I need to **keep my graph in forzen axis** 
   Here is my setting:
   ```
   animation: false,
   series: [{
       id: 0,
       type: 'graph',
       name: this.title,
       layout: 'none',
       // progressiveThreshold: 700,
       emphasis: {
           itemStyle: {
               opacity: 1,
           },
           lineStyle: {
               opacity: 1,
           },
           label: {
               position: 'right',
               show: true,
               opacity: 1,
           },
           edgeLabel: {
               show: false,
           }
       },
       roam: false,
       focusNodeAdjacency: true,
       lineStyle: {
           normal: {
               curveness: 0.3,
               opacity: 0.7,
           }
       },
       edgeSymbol: ['none', 'arrow'],
       edgeSymbolSize: [0, 10],
       data: nodes.map((node) => {
           return {
               x: 3 * node.x,
               y: node.y,
               id: node.id,
               value: node,
               name: node.label,
               symbolSize: 5,
               itemStyle: {
                   normal: {
                       color: node.color,
                       opacity: 1,
                       borderColor: '#000',
                   }
               },
               tooltip: {
                   show: true,
                   formatter: `${node.cid}`,
               },
           };
       }),
       edges: edges.map((edge) => {
           const { from, to, width, color, type } = edge;
           const hash = `${from}${SPLITTER}${to}`;
           return {
               source: from,
               target: to,
               value: edge,
               lineStyle: {
                   color,
                   type,
                   width,
               },
           };
       }),
   }]
   ```

----------------------------------------------------------------
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] kibbon commented on issue #12149: How to disable auto scale/transform in graph ?

Posted by GitBox <gi...@apache.org>.
kibbon commented on issue #12149: How to disable auto scale/transform in graph ?
URL: https://github.com/apache/incubator-echarts/issues/12149#issuecomment-586565698
 
 
   中文简述:当我使用echarts渲染图数据时,如果更改series里的数据,则重新渲染时视窗会发生自动的缩放和平移来确保所有渲染数据都在视角内,这对于我在图上动态添加新的数据点带来了非常大的困扰,我希望能够有办法移除此优化

----------------------------------------------------------------
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] closed issue #12149: How to disable auto scale/transform in graph ?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12149: How to disable auto scale/transform in graph ?
URL: https://github.com/apache/incubator-echarts/issues/12149
 
 
   

----------------------------------------------------------------
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 #12149: How to disable auto scale/transform in graph ?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12149: How to disable auto scale/transform in graph ?
URL: https://github.com/apache/incubator-echarts/issues/12149#issuecomment-586565580
 
 
   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 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


With regards,
Apache Git Services

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