You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "jmu13 (via GitHub)" <gi...@apache.org> on 2023/02/22 10:56:16 UTC

[GitHub] [echarts] jmu13 opened a new issue, #18297: [Bug] Custom series visibility can't be set back to "visible" on legend click

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

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/jmu13/nL9kebf6/21/
   
   ### Steps to Reproduce
   
   1. Hide one of the bars by clicking on the corresponding legend entry
   2. Click on the same legend entry again so the series is reappearing
   3. Exception is thrown in the console
   
   ### Current Behavior
   
   When trying to show the series again and clicking on the legend entry, an exception is thrown in the browser console. The series stays hidden and the "legendselectchanged"-event is not triggered.
   ![image](https://user-images.githubusercontent.com/125644102/220597579-488112fd-ab2f-444e-ae10-3fbb8c7e8381.png)
   
   
   ### Expected Behavior
   
   The series will reappear as usual and the event is triggered.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser: Chrome 110.0.5481.104
   - Framework: raw echarts
   ```
   
   
   ### Any additional comments?
   
   When a series is hidden we want to also hide the corresponding axis or axis part in case of a category axis. E.g. like in the JSFiddle we have series B01 and B02, also shown on the axis. If the series B01 is hidden, the axis should only show B02.
   We achieved this by adjusting the yAxis.data property then the "legendselectchanged" is triggered.
   For me, it looks like the combination of hiding a series and removing it from the axis data causes the 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.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] jmu13 commented on issue #18297: [Bug] Custom series visibility can't be set back to "visible" on legend click

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

   Sorry for the late response, I somehow missed your answer...
   Unfortunately it's a fix requirement to show the name next to the series since the legend can be hidden. The user should still be able to see which values belong to which series.


-- 
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] helgasoft commented on issue #18297: [Bug] Custom series visibility can't be set back to "visible" on legend click

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

   An alternative with _yAxis.type:'value'_ and no messing with event _legendselectchanged_.
   [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=GYVwdgxgLglg9mABAJwKZgCauQSSqgWwAoAHAQ2TIIGcAaRMkmASkQG8BYAKEUQDcKiCGXwBzOMgCeOTKgAeiALwMmAOgEAbEKiIAGZgG5uvAckTUoFKEpUxVEOBIxEA2ozubtRAIzN6wsQlpWTkAXUNjfkF0DBt3e0dkZzc1Tx0AJj8hEVRxKRksMIieKLMAC1QYUTLrZXjqGAAvHRddem9wlw7EACpEXVUANiMS00Q4cggYKEk41LItHQBmVkU1_sQAfn6hxAAuRG8Rk0E0aABlMsZUG1QIK-QoalVRShIymAh7DRgSACU7lAAEKSAHQIicEq8OQHCxWVqhWiRXiSWGWR5dUKIAC0iAqVRqiAA9Ih0kioYgAO4wDBQMoHGIInHmdFQBHk3i8fHVKAHbk1SIAX3okM5iBhiHIlBoCSc50kzzkHM5qMlFCozwccoVqkkyt41Np9LV0s1iQw8uehrp-rxlR5BylGtlSUtqn5UCFxV4aCgIGQSCIyJQgMu10QADII-xg7wZiRUAcAORnKBJ21xyhgBqwBAHFxJ6hXBNJxGx8zFxMhi6VjMsyQaKuisWc1Rt-ozRtEPzl3gTMhTGblwXBkclYpj7hjCa5pDKZuN0QxA5sYWROQAQTkMGoK-D8arACJYARUIfbQQYGADt5BgB2XQAFl0L9fL4vZAlt4fz7v6TfbRCsqkhbjue4UkSRIYCIZD5oeQIAPIIQAMro3jnog8FIah6SHoiiDBkWcCUgcwALNQqDkgAkFR1DCI2exQMg2i2tQJA_FAAByIAEAARtgexkogV74Mgmh7N4QGRBRyAwKgu6IC4zZijSBxYShaHnuWYBUEeiEaehdYHmpEAgBYcAEFpFK8OgDhYOBLachKLiHnCjwYYeMR4cOdbQZYFFQAU8gHI
 B1khrIuD4AQo62spnKqZh-k4VZjk6aealJbouFGZICYmWZUAWSlLa2XA9kxmF0JwW5UAeV5oQ-eWflkAFQVfnWaARXghAxZEZYlM1AX5nFvAYDAp7ZvA2ZwQEuRBB5NV1ZgHlpHhdbUHA_oQFWSm9pys15Kq3i0JB6moYZe28DVan_uk6TYt4926HeAAqugAByCXeewvgA1C-P26MVjk2ZgN1Zfdj3Ys9b0AJyCbogP_YjL7AyDaSkeRqB7WulUVSD-05IdN4nUSZ2aXWYrXZht2Q09r26PD_5IwDqOU5yy401lSzQ5Dgwvd4SyCekP13qod7PgAWmjjkY4gTHaDj5YNRSuNiiNiBjRNDQIApLkHfN9CuayS0YCtCzaGt5YbVtO0a2KBtSAcZKnZl2WXSyVjg3dD3029n3pN9f2s0D7Ogxg3t09DDNMyjujI4DMstnLZEaBROPs_bhOBE7pKk-T7t41drKR770dwwjLNx0nYqc4et081lD384Lwui-LUs15ycsK9jeNjo5KtigPiD9YKQA)


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