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/10 16:57:41 UTC
[GitHub] [echarts] spiral2k opened a new issue, #17497: [Bug] In some cases, custom legends do not work
spiral2k opened a new issue, #17497:
URL: https://github.com/apache/echarts/issues/17497
### Version
5.3.3
### Link to Minimal Reproduction
https://codesandbox.io/s/hopeful-payne-3kyvgp
### Steps to Reproduce
select the line or mixed chart -> the legends functional correctly, but in the area doesn't have any effect.
I didn't understand from the docs if I have access to the legends inner state, I want to be able to get an object that represents the inner state of the legends, after I set the chart configuration, something like:
`
{
Alpha: true,
Beta: false
}
`
is it possible?
### Current Behavior
I set the name property of each series, when the user clicks on one of the custom legends, I fire the event with the name of that legend, it works in some charts.
### Expected Behavior
I expect to be able to toggle legends by name on all charts
### Environment
```markdown
OS: macOS Monterey
Browser: Chrome 104.0.5112.79
Framework React@18
```
### Any additional comments?
thank you
you're awesome
--
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] fuchunhui commented on issue #17497: [Bug] In some cases, custom legends do not work
Posted by GitBox <gi...@apache.org>.
fuchunhui commented on issue #17497:
URL: https://github.com/apache/echarts/issues/17497#issuecomment-1222205001
If you customize legend, you also need to add legend and set it to not display, same with line chart.
```
legend: {show: false}
```
--
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] fuchunhui commented on issue #17497: [Bug] In some cases, custom legends do not work
Posted by GitBox <gi...@apache.org>.
fuchunhui commented on issue #17497:
URL: https://github.com/apache/echarts/issues/17497#issuecomment-1217933496
emmm.... review your code.
I found these differences.
| 三种图表配置 | 默认配置|
| -- | -- |
| ![image](https://user-images.githubusercontent.com/29879262/185115505-c725677a-9537-4e94-aba5-dd1568726dc5.png) | ![image](https://user-images.githubusercontent.com/29879262/185115673-d144e5b2-9019-4dfa-98af-4350dffbebed.png) |
**Area did't configure `legend: {show: false}`**
so, are you clear now?
--
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] spiral2k commented on issue #17497: [Bug] In some cases, custom legends do not work
Posted by GitBox <gi...@apache.org>.
spiral2k commented on issue #17497:
URL: https://github.com/apache/echarts/issues/17497#issuecomment-1221507471
> emmm.... review your code.
>
> I found these differences.
>
> three charts default config
> ![image](https://user-images.githubusercontent.com/29879262/185115505-c725677a-9537-4e94-aba5-dd1568726dc5.png) ![image](https://user-images.githubusercontent.com/29879262/185115673-d144e5b2-9019-4dfa-98af-4350dffbebed.png)
> **Area did't configure `legend: {show: false}`**
>
> so, are you clear now?
sorry, I don't understand how your answer is related to my issue, can you please explain yourself?
I'm using **legend: {show: false}** as the default configuration since I want to be able to render custom legends.
i don't want Echarts to render the legends
so how i can get the legends list and their state?
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