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

桑基图option.color设置为数组,数组中颜色为空字符串时,报错 #16574

Closed
yaodd123 opened this issue Feb 24, 2022 · 2 comments · Fixed by #16614
Closed

桑基图option.color设置为数组,数组中颜色为空字符串时,报错 #16574

yaodd123 opened this issue Feb 24, 2022 · 2 comments · Fixed by #16614
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. resolved

Comments

@yaodd123
Copy link

Version

5.3.0

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
series: [
type: 'sankey',
......
],
color: ['red', '']
}

Current Behavior

颜色中带有空字符串时报错,目前只发现桑基图报错,饼图、散点图等其他图表不报错。

Expected Behavior

不报错

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@yaodd123 yaodd123 added the bug label Feb 24, 2022
@echarts-bot echarts-bot bot added pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 24, 2022
@echarts-bot
Copy link

echarts-bot bot commented Feb 24, 2022

@yaodd123 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

Sankey diagram option.color is set to an array, when the color in the array is an empty string, an error is reported

BODY

Version

5.3.0

Link to Minimal Reproduction

No response

Steps to Reproduce

option = {
series: [
type: 'sankey',
......
],
color: ['red', '']
}

Current Behavior

With an empty string in the color, errors are reported, and at present, only sankey charts are found to be error-reporting, and other charts such as pie charts and scatter charts are not reported errors.

Expected Behavior

No errors

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@susiwen8 susiwen8 added the difficulty: easy Issues that can be fixed more easily than the average. label Mar 1, 2022
@echarts-bot
Copy link

echarts-bot bot commented Mar 1, 2022

This issue is labeled with difficulty: easy.
@yaodd123 Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

@plainheart plainheart added resolved and removed pending We are not sure about whether this is a bug/new feature. labels Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants