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] Zooming across entire axis for both x and y axis #20659

Open
lakeesiv opened this issue Jan 7, 2025 · 0 comments
Open

[Feature] Zooming across entire axis for both x and y axis #20659

lakeesiv opened this issue Jan 7, 2025 · 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

@lakeesiv
Copy link

lakeesiv commented Jan 7, 2025

What problem does this feature solve?

Currently when using the toolbox.feature.dataZoom you can either

  1. zoom into a subregion
    toolbox: {
      feature: {
        dataZoom: {
          filterMode: "none",
        },
      },
    },
Screen.Recording.2025-01-07.at.8.11.23.pm.mov
  1. Across the entire x axis
    toolbox: {
      feature: {
        dataZoom: {
          yAxisIndex: "none", // <----------------- Y Axis None
          filterMode: "none",
        },
      },
    },
Screen.Recording.2025-01-07.at.8.08.24.pm.mov
  1. Across entire y axis
    toolbox: {
      feature: {
        dataZoom: {
          xAxisIndex: "none", // <----------------- X Axis None
          filterMode: "none",
        },
      },
    },
Screen.Recording.2025-01-07.at.8.10.22.pm.mov

I want to be able to have both 2 & 3 and not have 1 or have a dynamic approach to zooming much like how plotly works

Uploading Screen Recording 2025-01-07 at 8.14.03 pm.mov…

This feature is quite important especially for scientifc graphs, the zooming behaviours in ehcarts is not the best.

What does the proposed API look like?

I am not sure, I think allowing two instances of the dataZoom toolbox seems like the simpler fix, open to knowing if this feature already exists

@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 Jan 7, 2025
@echarts-bot echarts-bot bot changed the title [Feature] Zooming across entire axis for both x and y axis [Feature] Zooming across entire axis for both x and y axis Jan 7, 2025
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