You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "pa7-sigma (via GitHub)" <gi...@apache.org> on 2024/12/27 19:26:02 UTC
[I] [Feature] Allow separate style customization if mark highlighted from legend [echarts]
pa7-sigma opened a new issue, #20626:
URL: https://github.com/apache/echarts/issues/20626
### What problem does this feature solve?
### Use case
I'd like to visually distinguish direct interactions with marks from legend interactions.
When hovering over a Pie slice I'd like to apply emphasis styles, but when highlighting a Pie slice through the legend I'd like to apply different styles.
### Example Experience
https://github.com/user-attachments/assets/64410e67-f6e8-4c54-b51b-946c2edc058d
### Current Workaround
- customize styles through mutating the graphics elements when legend items are hovered
- rely on emphasis state for direct interactions
### Open Questions
Is there a better way to achieve this without customizing on the renderer level?
### What does the proposed API look like?
This may not be a good idea so open to alternative approaches:
- Extend the highlight action payload support applying custom styles when dispatching a highlight action
--
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] [Feature] Allow separate style customization if mark highlighted from legend [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #20626:
URL: https://github.com/apache/echarts/issues/20626#issuecomment-2635860943
I might not have fully understood your meaning. To change the color of elements when hovering, it can be done through a method similar to this:
```js
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
emphasis: {
itemStyle: {
color: 'red'
}
}
}
]
```
--
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] [Feature] Allow separate style customization if mark highlighted from legend [echarts]
Posted by "lwangsf (via GitHub)" <gi...@apache.org>.
lwangsf commented on issue #20626:
URL: https://github.com/apache/echarts/issues/20626#issuecomment-2573934780
We'd like to follow up on this issue. Specifically, we're trying to determine if there's a reliable way to customize eChart rendering or behavior when the default options don't align with our design needs. Have there been similar requests in the past? Thanks in advance! 🙏
--
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] [Feature] Allow separate style customization if mark highlighted from legend [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20626:
URL: https://github.com/apache/echarts/issues/20626#issuecomment-2613296502
Even though the code is incomplete, it looks like a valid approach.
--
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