Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] [LineChart] 希望添加 symbolSize 配置以及将select 样式权重设置高于emphasis样式 #17072

Closed
RootJian opened this issue May 19, 2022 · 5 comments · Fixed by #17390
Labels
new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@RootJian
Copy link

What problem does this feature solve?

  1. echarts symbolSize 设置6和emphasis.scale为true时,放大效果不明显,希望能够提供配置手动设置放大像素值
    Demo
  2. 当我设置select.itemStyle 样式和emphasis.itemStyle样式时,hover 点击symbol,此时没有显示select的样式,而是展示的emphasis样式,需要失焦symbol后才展示,因此希望select.itemStyle权重能够大于emphasis.itemStyle或者将其进行merge,合并样式更佳

What does the proposed API look like?

1、
{ symbolSize: 6, emphasis:{ symbolSize: 8 } }

@echarts-bot echarts-bot bot added pending We are not sure about whether this is a bug/new feature. waiting-for: community labels May 19, 2022
@echarts-bot
Copy link

echarts-bot bot commented May 19, 2022

@RootJian 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] [LineChart] wants to add a symbolSize configuration and set the select style weight higher than the emphasis style

BODY

What problem does this feature solve?

  1. When echarts symbolSize is set to 6 and emphasis.scale is true, the amplification effect is not obvious. Hopefully, you can provide configuration to manually set the magnification pixel value
    [Demo](https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code= PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_ MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MrtpHjkALYARsD-JhAAXt5NA-hUwyDajHiu7gnoeEz-NGAcSnHodsewcafotnYA3EA)
  2. When I set the select.itemStyle style and the example.itemStyle style, hover click on the synchronization, at this time there is no display of the select style, but the display of the embodiment style, which needs to be shown after the out-of-focus symbol, so I hope that the select.itemStyle weight can be greater than the example.itemStyle or compare it. Merging styles is better

What does the proposed API look like?

1、
{ symbolSize: 6, emphasis:{ symbolSize: 8 } }

@plainheart
Copy link
Member

希望能够提供配置手动设置放大像素值

从 v5.3.2 开始,symbol 的 emphasis.scale 支持数值类型,参见 #16688。文档可能有疏漏,仅 scatter series 有注明。示例

@RootJian
Copy link
Author

RootJian commented May 20, 2022

希望能够提供配置手动设置放大像素值

从 v5.3.2 开始,symbol 的 emphasis.scale 支持数值类型,参见 #16688。文档可能有疏漏,仅 scatter series 有注明。示例

确实能生效,那还有一个就是select.itemStyle 样式和emphasis.itemStyle样式同时设置的问题,请问有解决方案吗 Demo

select样式:
image
hover样式:
image
期望hover时取click样式(同时hover放大效果保留)
image
但现在hover时click样式依然保留的hover样式
image

@RootJian
Copy link
Author

RootJian commented Jul 4, 2022

希望能够提供配置手动设置放大像素值

从 v5.3.2 开始,symbol 的 emphasis.scale 支持数值类型,参见 #16688。文档可能有疏漏,仅 scatter series 有注明。示例

image
ts 声明提示echarts.LineSeriesOption scale为boolean

@plainheart
Copy link
Member

似乎是漏掉了,欢迎 PR 或者等后面我们加一下~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants