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 2022/08/28 04:04:15 UTC

[GitHub] [echarts] ljianc opened a new issue, #17583: getOption接口支持返回不合并默认值

ljianc opened a new issue, #17583:
URL: https://github.com/apache/echarts/issues/17583

   ### What problem does this feature solve?
   
   我想将option保存到数据库,现在的getOption接口返回的是一大坨,非常占用存储空间。
   
   ### What does the proposed API look like?
   
   能否支持只返回不合并默认值的option,或者只返回用户设置过的option,而不是所有属性都返回


-- 
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.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] ljianc closed issue #17583: getOption接口支持返回不合并默认值

Posted by GitBox <gi...@apache.org>.
ljianc closed issue #17583: getOption接口支持返回不合并默认值
URL: https://github.com/apache/echarts/issues/17583


-- 
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] Ovilia commented on issue #17583: getOption接口支持返回不合并默认值

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

   是可能会不一样,因为上面解释了,ECharts 是每次调用 setOption 的时候,传入的 option 和 ECharts 默认 option merge。如果你把每次 setOption 传入的 option 相互 merge 再传入,那么的确可能不同。所以要准确的话还是通过 getOption 去获取。具体还是看你需要怎么使用这个 option。


-- 
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] echarts-bot[bot] commented on issue #17583: getOption接口支持返回不合并默认值

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17583:
URL: https://github.com/apache/echarts/issues/17583#issuecomment-1229370371

   @ljianc It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   The getOption interface supports returning default values without merging
   
   **BODY**
   
   ### What problem does this feature solve?
   
   I want to save the option to the database, and now the getOption interface returns a large lump, which occupies a lot of storage space.
   
   ### What does the proposed API look like?
   
   Can you support returning only options that do not merge default values, or only scenarios that have been set by the user instead of all properties being returned
   </details>


-- 
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] Ovilia commented on issue #17583: getOption接口支持返回不合并默认值

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

   在 ECharts 内部并不会保留一份所有用户 setOption 传入的 option 的 merge 后的对象,而是每次 setOption 后将用户传入的 option 和图表默认值的 option 合并。如果有这个需求的话,建议传入 setOption 之前自己记录一下这个 option 并合并一下。


-- 
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] ljianc commented on issue #17583: getOption接口支持返回不合并默认值

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

   主要是我自己本地写一套merge规则,如果和echarts内部的merge规则不一致,就会导致一些问题。是否有更好的方法


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