-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
[Bug] itemStyle.color配置成回调函数时,lineStyle.color无效 #20042
Comments
@never51463 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. 🤗 TRANSLATEDBODY Versione.g. 5.5.0 Link to Minimal ReproductionSteps to ReproduceWhen configuring series-line.itemStyle.color as the callback function, only the inflection point changes color, and lineStyle does not take the value according to itemStyle.color as stated in the document. This problem was raised and fixed in 2019. Now the problem reappears in the new version and is not solved. Current BehaviorWhen the color of itemStyle uses the callback function, the line color cannot change accordingly. Expected BehaviorWhen the color of itemStyle uses the callback function, the line color can also change accordingly. Environment- OS: windows 10
-Browser:
- Framework: Any additional comments?No response |
This does not appear to be a bug, in my opinion. When |
if it's no a bug, how to choose when I need to modify the color of a segment of a line based on different numerical values, but it is not a gradient scene? @Ovilia |
Currently, ECharts doesn't have the ability to set line styles of different segments, if visualMap doesn't count. |
Perhaps adding support for callback function types to lineStyle would be more in line with the documentation's explanatory logic. |
#17138 Maybe you can follow this feature. This is an epic feature so it's still in pending state and I don't know if when I have time to do this. |
ok, i know that |
Version
e.g. 5.5.0
Link to Minimal Reproduction
#10910
Steps to Reproduce
配置series-line.itemStyle.color作为回调函数时,只有拐点变色,lineStyle没有按文档所说的会根据itemStyle.color取值
该问题与19年被提出并且被修复过,现在在新版本重新出现该问题并且没有解决
Current Behavior
当itemStyle的color使用回调函数时,线条颜色不能产生相应变化
Expected Behavior
当itemStyle的color使用回调函数时,线条颜色也能产生相应变化
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: