# Is it possible to zoom and pan a visualization if you don't know the max/min of your scales?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-zoom-and-pan-a-visualization-if-you-dont-know-the-max-min-of-your-scales/287364>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [October 21, 2021, 8:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-zoom-and-pan-a-visualization-if-you-dont-know-the-max-min-of-your-scales/287364 "2021-10-21T20:26:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsimi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nsimi/32/39013_2.png) [@nsimi](https://discuss.elastic.co/u/nsimi)\
**Post date:** [October 21, 2021, 8:26pm UTC](https://discuss.elastic.co/t/is-it-possible-to-zoom-and-pan-a-visualization-if-you-dont-know-the-max-min-of-your-scales/287364/1 "2021-10-21T20:26:41Z")

</div>

Hello all,

I have been working on adapting the "force directed graph" example to my data. But I have an issue where I have too many items that are returned and the nodes get forced out of the visible area. So I want to zoom/pan to see all my data. I have been looking at the " [Zoomable Scatter Plot](https://vega.github.io/vega/examples/zoomable-scatter-plot/)" and the  
"[Zoomable Binned Plot](https://vega.github.io/vega/examples/zoomable-binned-plot/)" as to how to do zoom/pan, but... those require I know the min/max of x & y but I don't know that in the force directed version, is there something I am missing here that would let me do this?

Thank you!

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [October 25, 2021, 10:27pm UTC](https://discuss.elastic.co/t/is-it-possible-to-zoom-and-pan-a-visualization-if-you-dont-know-the-max-min-of-your-scales/287364/2 "2021-10-25T22:27:36Z")

</div>

@nyuriks can we get your eyes here please?

thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 22, 2021, 10:27pm UTC](https://discuss.elastic.co/t/is-it-possible-to-zoom-and-pan-a-visualization-if-you-dont-know-the-max-min-of-your-scales/287364/3 "2021-11-22T22:27:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
