You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "100pah (via GitHub)" <gi...@apache.org> on 2023/09/07 12:57:09 UTC

[GitHub] [echarts] 100pah opened a new issue, #19093: [Bug] iOS SVG renderer, label disappear when click.

100pah opened a new issue, #19093:
URL: https://github.com/apache/echarts/issues/19093

   ### Version
   
   5.3.0+
   
   ### Link to Minimal Reproduction
   
   -
   
   ### Steps to Reproduce
   
   ```js
   
               option = {
                   "xAxis": {
                       "type": "category",
                       "data": ["2018FY", "2019FY", "2020FY", "2021FY", "2022FY"],
                   },
                   "yAxis": {
                       "type": "value",
                   },
                   "series": [
                       {
                           "type": "bar",
                           "name": "总营收(万美元)",
                           "data": [111, 222, 3333, 444, 555],
                           "label": {
                               "show": true,
                               "position": "top"
                           }
                       }
                   ]
               };
   ```
   
   Use SVG renderer.
   click a on the bar, then click on blank, the labels disappear.
   
   v5.2.2 is OK
   v5.3+ started to be wrong.
   
   ![aaaaaaaa](https://github.com/apache/echarts/assets/1956569/429b2dd0-f122-413e-8b1e-07aeb15102a7)
   
   
   ### Current Behavior
   
   -
   
   ### Expected Behavior
   
   -
   
   ### Environment
   
   ```markdown
   - OS: iOS
   - Browser:
   - Framework:
   ```
   
   
   ### 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] iOS SVG renderer, label disappear when click. [echarts]

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

   Fixed by https://github.com/ecomfe/zrender/pull/1030


-- 
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] iOS SVG renderer, label disappear when click. [echarts]

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

   By ecomfe/zrender#1030 , the bug disappears. Thanks @alxnddr !
   
   The root cause of this bug is unknown yet. 
   Just record some phenomena:
   In safari (macOS13.3, safari Version 16.4 (18615.1.26.11.22)):
   
   1. When we hover the bar to make the text color become white unexpectedly, text attribute will not changed, the only changes are:
       + bar element `elm.setAttribute('fill', 'rgb(92,123,217)'); /* or "#5470c6" */`
       + the order of the corresponding elements.
   2. When this changes happen, if a SVG text node has no `elm.style.cssText = 'font:12px'; /* or 'font-family:xxx' */`,  the text color probably become white unexpectedly. 
       + Note that `elm.setAttribute('style', 'font:12px'); /* or 'font-family:xxx' */` works for the style but the bug still happens.
   


-- 
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] iOS SVG renderer, label disappear when click. [echarts]

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

   Info:
   
   Can also reproduce it on macOS safari:
   
   https://github.com/apache/echarts/assets/1956569/28e74d86-0aa3-494a-a1c2-045a5596e701
   
   
   


-- 
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] iOS SVG renderer, label disappear when click. [echarts]

Posted by "100pah (via GitHub)" <gi...@apache.org>.
100pah closed issue #19093: [Bug] iOS SVG renderer, label disappear when click.
URL: https://github.com/apache/echarts/issues/19093


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