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

[Feature] Separate z-level for markarea and markarea label #18597

Open
hughess opened this issue May 7, 2023 · 0 comments
Open

[Feature] Separate z-level for markarea and markarea label #18597

hughess opened this issue May 7, 2023 · 0 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@hughess
Copy link

hughess commented May 7, 2023

What problem does this feature solve?

I am creating a markarea which I would like to be behind the gridlines on my chart. I would also like to add a label to the markarea, but I would like that label to be in front of the gridlines.

I can successfully change the z-level of the markarea to get it behind the gridlines (by including it in its own series with type:line), but I cannot control the z-level of the markarea label.

Ideally, you could set the zLevel on both the markArea and the markArea.label elements.

What does the proposed API look like?

series: {
   type: 'line'
   markArea: {
      data: myData,
      label: {
         show: true,
	 zLevel: 3
      },
      zLevel: 0
    }
}
@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. labels May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant