apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.69k stars 19.62k forks source link

[Feature] 柱状图鼠标Hover的样式 #20493

Closed 18629011900 closed 1 day ago

18629011900 commented 1 week ago

What problem does this feature solve?

我有下图这样的需求,当鼠标滑过同一时间的柱子的区域时,出现下图这样的样式。 背景的方框有 背景色、边框、圆角,宽度包含了同一时间的柱子、高度包含了底下的时间。 我尝试了多种方案都不能满足这样的需求,不知道有没有方案能实现?特来寻求帮助,谢谢! default

What does the proposed API look like?

希望能在series-bar.emphasis配置项中增加鼠标hover关于背景的选项设置,并能设置 背景色、边框、圆角,宽度包含了同一时间的柱子、高度包含了地下的时间 等这些属性。

echarts-bot[bot] commented 1 week ago

@18629011900 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Feature] Histogram mouse Hover style **BODY** ### What problem does this feature solve? I have a need like the one below, when the mouse is slid over the area of the bar at the same time, the following style appears. The box of the background has **background color, border, rounded corners, width contains the column at the same time, height contains the time underground**. I've tried a variety of solutions but can't meet this need, I don't know if there is a solution that can achieve it? Coming to ask for help, thank you! ![chart-bar](https://github.com/user-attachments/assets/11e4adaf-dbea-4327-ab34-8b8065d701ce) ### What does the proposed API look like? I hope to add the mouse hover option setting about the background in the series-bar.emphasis configuration item, and can set **background color, border, rounded corners, width contains the column at the same time, height contains the time of the underground** and other attributes.
18629011900 commented 1 day ago

太久没有回复了