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/17 20:24:33 UTC

[GitHub] [incubator-echarts] a5hk opened a new issue #12290: Please add an API to get current calculated options

a5hk opened a new issue #12290: Please add an API to get current calculated options
URL: https://github.com/apache/incubator-echarts/issues/12290
 
 
   ### What problem does this feature solve?
   Right now there is `echartsInstance.getOption` which returns the options but at is not the calculated one (at least for some properties).  For example I have set the `cellSize` of calendar to `["auto", "auto"]`, when I call `getOption` the value it returns for `cellSize` is `["auto", "auto"]` but I want to know the exact width and height of cells in pixels. I am trying to change the size of pie charts in [this example](https://www.echartsjs.com/examples/en/editor.html?c=calendar-pie) based on calendar cell size and I need to know the current `cellSize` to do that.
   
   ### What does the proposed API look like?
   `echartsInstance.getCalculatedOption`
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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] pissang commented on issue #12290: Please add an API to get current calculated option

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #12290: Please add an API to get current calculated option
URL: https://github.com/apache/incubator-echarts/issues/12290#issuecomment-600614546
 
 
   Hi @a5hk . Currently you can use inner methods.
   ```js
   getModel().getComponent('calendar').coordinateSystem.dataToRect(date);
   ```

----------------------------------------------------------------
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 edited a comment on issue #12290: Please add an API to get current calculated option

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #12290: Please add an API to get current calculated option
URL: https://github.com/apache/incubator-echarts/issues/12290#issuecomment-600614546
 
 
   Hi @a5hk . It's a good suggestion. Currently you can use inner methods.
   ```js
   getModel().getComponent('calendar').coordinateSystem.dataToRect(date);
   ```

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