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] warning z / z2 / zlevel of displayable is invalid, which may cause unexpected errors #16983

Closed
ls-v opened this issue May 5, 2022 · 10 comments · Fixed by #17247
Closed
Labels
bug en This issue is in English resolved

Comments

@ls-v
Copy link

ls-v commented May 5, 2022

Version

5.3.2

Link to Minimal Reproduction

https://codepen.io/likunone/pen/ExQjJVW?editors=1111

Steps to Reproduce

This warning appears the first time the mouse is placed over the chart

Current Behavior

This warning appears the first time the mouse is placed over the chart

Expected Behavior

Mouse on no warning

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@ls-v ls-v added the bug label May 5, 2022
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels May 5, 2022
@andrearoota
Copy link
Contributor

andrearoota commented May 5, 2022

This bug is generated by the option trigger:'axis', but I don't know where the problem is

@Demi1024
Copy link

Demi1024 commented May 6, 2022

same here

@iizyd
Copy link

iizyd commented May 12, 2022

I got the same problem

@apache apache deleted a comment May 12, 2022
@apache apache deleted a comment May 12, 2022
@VictorMarques98
Copy link

VictorMarques98 commented May 13, 2022

Hey guys, i fixed the issue. You need to declare "zlevel" and "z" properties on echarts series option.

series: [ { name: ..., areaStyle...., itemStyle ...., zlevel: 9 , z: 9, data: ...., },


In my case, I have 2 series of line type, but like @andrearoota, I have the trigger option: "axis" on my tooltip.
Also, you can see the description of these properties in the doc: https://echarts.apache.org/en/option.html#series-line.zlevel;

@xiao-xiaozi
Copy link

same here. I try to set series: [ { ..., zlevel: 4, z:5}, { ..., zlevel: 5, z: 6 } ] it doesn't work. Still show the warning message .

@plainheart
Copy link
Member

Fixed in #17247.

@plainheart plainheart added resolved and removed pending We are not sure about whether this is a bug/new feature. labels Jul 5, 2022
@echarts-bot echarts-bot bot closed this as completed Jul 5, 2022
@jetsadaadapter
Copy link

Hey guys, i fixed the issue. You need to declare "zlevel" and "z" properties on echarts series option. series: [ { name: ..., areaStyle...., itemStyle ...., zlevel: 9 , z: 9, data: ...., }, In my case, I have 2 series of line type, but like @andrearoota, I have the trigger option: "axis" on my tooltip. Also, you can see the description of these properties in the doc: https://echarts.apache.org/en/option.html#series-line.zlevel;

I try this worked for me. thanks for this problem solve.

@tamilv
Copy link

tamilv commented Oct 1, 2023

For me it showing that warning I am using version 5.4.3. any one can help me

@dikokkali
Copy link

I have noticed that this error also gets triggered by the 'gauge' type series. I have not defined a tooltip, and have tried defining the tooltip as 'none'. Setting the z/zlevel properties in the series option doesn't work.

I have managed to isolate the issue to the 'progress' option of the chart; commenting it out seems to make the warning disappear, but this is not desirable.

Running version 5.4.2, by the way.

@2478535322
Copy link

The cause of this warning message is that the value in series.data is not displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.