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] Control the Y zoom range via API and Option #20459

Closed
electroheadfx opened this issue Oct 29, 2024 · 1 comment
Closed

[Feature] Control the Y zoom range via API and Option #20459

electroheadfx opened this issue Oct 29, 2024 · 1 comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@electroheadfx
Copy link

What problem does this feature solve?

I have setup min and max of Y axis, controlled by the app, when echarts open I apply a percent xAxis pre-zoom to dataZoom via api, but I would like too apply to yAxis. Is the dataZoom may be independant axiss ?

What does the proposed API look like?

Via API or option we could setup the config with:

const dataZoom = [
    {
      // dataZoom inside for all measures
      type: 'inside',
      Xstart: initZoomState[0], // actually its : start: initZoomState[0]
      Xend: initZoomState[1], // acutually its : end: initZoomState[1]
     Ystart: initZoomState[0], // NEW !
     Yend: initZoomState[1], // NEW
    }
  ]
@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 Oct 29, 2024
@electroheadfx
Copy link
Author

hmm I can do that if I setup start and end on any abject with the axis specified:

const dataZoom = [
    {
      type: 'inside',
     xAxisIndex: 0 // <-- here
     start: initZoomState[0], // NEW !
     end: initZoomState[1], // NEW
    },
     {
      type: 'inside',
     yAxisIndex: 0 // <-- here
     start: initZoomState[0], // NEW !
     end: initZoomState[1], // NEW
    }
  ]

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