-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
当x轴为时间轴时,visualMap展示的颜色不对 #15407
Comments
Hi! We've received your issue and please be patient to get responded. 🎉 In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so. A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster. You may also check out the API and chart option to get the answer. If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question. If you are interested in the project, you may also subscribe our mailing list. Have a nice day! 🍵 |
@bnuzhengshan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗 TRANSLATEDTITLE When the x-axis is the time axis, the color displayed by visualMap is incorrect BODY Version5.1.2 Steps to reproduceThe x-axis is set as the time axis, visualMap sets pieces and outOfRange, the data value of the series is outside the range of pieces, and the line color is not displayed correctly What is expected?The line is gray What is actually happening?The line is red { |
使用4.x版本的echarts并不会有这个问题,这个问题是升级5.1.2之后出现的 |
Little workaround for now visualMap: {
top: 50,
right: 10,
pieces: [
{
"gte": 300,
"lt": 400,
"color": "yellow"
},
{
"gte": 400,
"lt": 500, // add lt
"color": "green"
}
],
outOfRange: {
color: '#999'
}
}, Or downgrade to |
Relate to #14602 echarts/src/chart/line/LineView.ts Line 246 in cf7c4ef
|
@plainheart Could you take a look on this? |
Version
5.1.2
Steps to reproduce
x轴设为时间轴,visualMap设置pieces和outOfRange,series的data的值都在pieces的范围之外,线条颜色显示不正确
What is expected?
线条显示灰色
What is actually happening?
线条显示红色
The text was updated successfully, but these errors were encountered: