You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "masum-mollik-rocketml (via GitHub)" <gi...@apache.org> on 2023/11/09 13:27:36 UTC

[I] [Bug] appending tooltip to body does not working by setOption() method [echarts]

masum-mollik-rocketml opened a new issue, #19284:
URL: https://github.com/apache/echarts/issues/19284

   ### Version
   
   5.2.2
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/basic-line-chart-forked-t52vzp?file=/index.js
   
   ### Steps to Reproduce
   
   1. initiate the chart
   2. set appendToBody to true by setOption() method
   
   ### Current Behavior
   
   setting appendToBody: true does not work. It works when the property is set to true at the initialization.
   
   `  myChart.setOption({
       tooltip: {
         renderMode: "html",
         appendToBody: true,
         alwaysShowContent: true
       }`
   
   ### Expected Behavior
   
   The tooltip should append to the html body.
   
   ### Environment
   
   ```markdown
   - OS: macOS Monterey
   - Browser: Chrome 108.0.4664.55
   - Framework: any
   ```
   
   
   ### Any additional comments?
   
   _No response_


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


Re: [I] [Bug] appending tooltip to body does not working by setOption() method [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19284:
URL: https://github.com/apache/echarts/issues/19284#issuecomment-1804600184

   tooltip [appendToBody](https://echarts.apache.org/en/option.html#tooltip.appendToBody)_ is controlled by [renderMode](https://echarts.apache.org/en/option.html#tooltip.renderMode). Docs say _"By default, it(renderMode) is set to be 'html' so that extra DOM element is used for tooltip. It can also set to be 'richText' so that the tooltip will be rendered inside Canvas."_
   So, by default, tooltip is already in DOM outside canvas.
   If you want to see it better in Chrome DevTools, add a [className](https://echarts.apache.org/en/option.html#tooltip.className).
   But you are correct that _setOption_ cannot change _renderMode_ and consequently _appendToBody_. That is **not** documented.
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PTAEHEFMDtIJwIYBdKgCbIQOgLACgAzAV2gGMkBLAe2lAFsEBrSAEUwAoBKUAb31FAAbSEnSZQAXlABtALoBufqAJU4odsNEVJoAAzzQ2gDygArAYoBqS9z54BAzaFLJUUuYvsOVajSNAAVjr6gaAmAIy6IQHWtkoOzq5YAA5EAM4AFuwAssgZWIjQaFR0XKAAVKAATFGcngkAvvFiSNipmewuKHVKTV5wIkRwtBitnn2kNGmiowi6OgzMbK1cnpPQ0y0I4QtMrBw9eFTJlDSSdgJIVFSClMkAXLzNl3AUAOZv8I8ARBQodN8ADTPUAIAAeFDSAAUqBRoCg4I8LgkHEgAJ7JSA_UhwKhpNLfEENYFeBKZKgAd0eSDgREgJJRoMEFIQaLSAGUMpSAMI0FDw6m0-kgkADIrwbJUNBY0DfDJIOiCIECEDoSAEBBEW4i4Bi6VwSXSn6vUgZAAqkDBSCBINIggQ-IAcgg6DKAOSQU0IOBINIAWiuNzuoE9GW9voD11uFGSfowcEYboZoGJSjRAEEIWlHtIeCnZMmwZnITm8-jMdjXG9VGjvvnk7M0iIc81kWSqENSDLZrpmqnSU8BwI0h24F3HrNwn3kwI295cXRlg6RABJcVgx66GeowppHx0JGgcvugBGVDByUEVCQbpT09bIIIC6XTaQa-lG9A4W3LwQG33h7Ho8bpnheV43neA79gIBb4EoTavJA2YyA-Q6gNALoyt8ABC56Xteeg2mhQGyqB-HWj-Wyvu-lqPFUlF_JAdDsuiwhIiCAiTFeiKygAxAQAlEYyAhnnA-oAOoUGgSAZI8U5odBDiKbOIIYa6Py4WBBHhEJKIkd8ZHgbpCSNqu66PAAzAx_wsWibGDsJzg3KoPz8YJlEiaoElSTJclEtuimwV4wif
 EULYDnOAiqBQMBID8XKvAAXnyCBKpRwgEHFspdvC8DGQ45JUkeQqUU2wjkJAaCGjKNJ0qVkDlSgaDsWhAg4Xh4GEYKdUcbKa6CDFcBpF1yipU2HmygA8kQSADfAw26N8jwaoI429e1WmiDp3XCq1fXQHNQ1fkto2rbtjnfNNs2DcN22nU2RJ9kosj4H0dBotyYY-lgNDsG6doUKQiaAsoJDkNQtDsMkcReKqeoSlKqAuNA0AESeSNhtAnxoCGABuMCgBSfwZKAAyXgg45KMcpzQFggbRskBQwPq1U6HKCpKvUoDUxDdNRncWAIMkmJFGaVC4WgaI6CtTZc-9n3hlgr6TScEPsDzNAg7VkCHA0dRAA)
   


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


Re: [I] [Bug] appending tooltip to body does not working by setOption() method [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19284:
URL: https://github.com/apache/echarts/issues/19284#issuecomment-3539352984

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


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


Re: [I] [Bug] appending tooltip to body does not working by setOption() method [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19284:
URL: https://github.com/apache/echarts/issues/19284#issuecomment-3508834904

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this 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.

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


Re: [I] [Bug] appending tooltip to body does not working by setOption() method [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19284: [Bug] appending tooltip to body does not working by setOption() method
URL: https://github.com/apache/echarts/issues/19284


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