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/04/03 19:25:48 UTC

[GitHub] [incubator-echarts] 100pah commented on issue #12357: 保存力引导布局graph options 成JSON,重新setOption 报错

100pah commented on issue #12357: 保存力引导布局graph options 成JSON,重新setOption 报错
URL: https://github.com/apache/incubator-echarts/issues/12357#issuecomment-608617538
 
 
   当前还并不能通过 getOption 获得布局好的结果。
   私有 api 可以获取这些值,如:
   ```js
   var layout = [];
   var privateData = mm.getModel().getSeries()[0].getData();
   for (var i = 0; i < privateData.count(); i++) {
       layout.push(privateData.getItemLayout(i));
   }
   ```
   但是这些私有 api 只能在当前版本中使用,后续版本可能会改变。

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