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

[Bug] polar使用visualMap时,只有折线标记的图形颜色正常变化 #17492

Closed
suzuyong opened this issue Aug 10, 2022 · 4 comments
Closed
Labels
new-feature stale Inactive for a long time. Will be closed in 7 days. topic: line

Comments

@suzuyong
Copy link

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

line-polar

Expected Behavior

折线和标记的图形颜色都能根据visualMap的设置正常变化。

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@suzuyong suzuyong added the bug label Aug 10, 2022
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Aug 10, 2022
@echarts-bot
Copy link

echarts-bot bot commented Aug 10, 2022

@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. 🤗

TRANSLATED

TITLE

[Bug] When polar uses visualMap, only the graph color of polyline markers changes normally

@Ovilia Ovilia added topic: line and removed pending We are not sure about whether this is a bug/new feature. labels Aug 12, 2022
@Ovilia Ovilia self-assigned this Aug 12, 2022
@Ovilia Ovilia added new-feature and removed bug labels Aug 12, 2022
@Ovilia
Copy link
Contributor

Ovilia commented Aug 12, 2022

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.

@Ovilia Ovilia removed their assignment Aug 12, 2022
Copy link
Contributor

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.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Aug 11, 2024
Copy link
Contributor

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!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature stale Inactive for a long time. Will be closed in 7 days. topic: line
Projects
None yet
Development

No branches or pull requests

2 participants