-
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] visualMap实现折线颜色渐变渲染问题 #17648
Comments
This comment has been minimized.
This comment has been minimized.
@luolongsen 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. 🤗 TRANSLATEDTITLE [Bug] VisualMap implements polyline color gradient rendering issues BODY Version5.2.2 Link to Minimal ReproductionNo response Steps to ReproduceThe line chart configures the threshold color change by setting the visualMap property, but when there are two consecutive inflection point values, such as 12 below, a parallel line will appear with two colors Current BehaviorThe line chart configures the threshold color change by setting the visualMap property, but when there are two consecutive inflection point values, such as 12 below, a parallel line will appear with two colors Expected BehaviorIt is expected that the color display of the line chart should be consistent with the configuration, one color less than or equal to the inflection point, and another color greater than the inflection point Environment- OS:
- Browser:
- Framework: Any additional comments?No response |
Please follow #17138 |
Version
5.2.2
Link to Minimal Reproduction
No response
Steps to Reproduce
折线图通过设置配置visualMap属性配置阈值颜色变化,但当有两个连续的拐点值,比如下文12值的两个点,会出现一条平行线,有两种颜色
visualMap: {
show: true,
type:'piecewise',
top: '13%',
right: '2%',
orient: 'horizontal',
pieces: [
{ gt: -4, lte: 0, color: '#7088ff' },
{ gt: 0, lte: 4, color: '#75cfff' },
{ gt: 4, lte: 8, color: '#ffc619' },
{ gt: 8, lt: 12, color: '#ff8766' },
{ gt: 12, lte: 16, color: '#483D8B' }
],
outOfRange: { color: '#999' }
},
Current Behavior
折线图通过设置配置visualMap属性配置阈值颜色变化,但当有两个连续的拐点值,比如下文12,会出现一条平行线,有两种颜色
visualMap: {
show: true,
type:'piecewise',
top: '13%',
right: '2%',
orient: 'horizontal',
pieces: [
{ gt: -4, lte: 0, color: '#7088ff' },
{ gt: 0, lte: 4, color: '#75cfff' },
{ gt: 4, lte: 8, color: '#ffc619' },
{ gt: 8, lt: 12, color: '#ff8766' },
{ gt: 12, lte: 16, color: '#483D8B' }
],
outOfRange: { color: '#999' }
},
Expected Behavior
预期折线图颜色显示应该和配置保持一致,小于等于拐点一种颜色,大于拐点另一种颜色
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: