-
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
[Bug] polar使用visualMap时,只有折线标记的图形颜色正常变化 #17492
Comments
@suzuyong 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] When polar uses visualMap, only the graph color of polyline markers changes normally |
After diving into the code, I found that gradient color is not supported for polar lines and visualMaps use gradient to implement. It is not easy to support gradient for polar lines because linear gradient is tricky in the polar system so we intentionally didn't support it in the polar line series. Although the visualMap for polar line series may not be implemented in a near future, you can follow #17138 to see if this requirement can be fulfilled with that issue. |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
const data = [];
for (let i = 0; i <= 50; i++) {
let theta = (i / 50) * 360;
let r = 5 * (1 + Math.sin((theta / 180) * Math.PI));
data.push([r, theta]);
}
option = {
title: {
text: 'Two Value-Axes in Polar'
},
legend: {
data: ['line']
},
polar: {},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
}
},
angleAxis: {
type: 'value',
startAngle: 0
},
radiusAxis: {},
visualMap: {
top: 50,
right: 10,
dimension: 0,
pieces: [
{
gt: 0,
lte: 2,
color: '#93CE07'
},
{
gt: 2,
lte: 4,
color: '#FBDB0F'
},
{
gt: 4,
lte: 6,
color: '#FC7D02'
},
{
gt: 6,
lte: 8,
color: '#FD0100'
},
{
gt: 8,
lte: 10,
color: '#AA069F'
},
{
gt: 10,
color: '#AC3B2A'
}
],
outOfRange: {
color: '#999'
}
},
series: [
{
coordinateSystem: 'polar',
name: 'line',
type: 'line',
data: data
}
]
};
Current Behavior
Expected Behavior
折线和标记的图形颜色都能根据visualMap的设置正常变化。
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: