SandDance
SandDance copied to clipboard
Limit zoom level
Hello,
Thanks again for the great work on Sandance! I was wondering if there is a way to limit the zoom level on a graph. When zooming in all the way I am facing the issue of labels overlapping.

Thanks!
Hello and thanks for the feedback. This is not an easy problem to fix universally, but for now we have a few sliders in the settings tab:

Thanks for your response. I suppose this means there is currently no way to do it programatically?
The text scale can be set programmatically. The Insight object has a signalValues property, you can set insight.signalValues['Text_ScaleSignal'] = yourScaleValue. Other SignalNames can be found here.
I can provide a better code sample if you let me know which component you're using.
Re-reading your original post, I see that you also would like to limit the zoom. I think that's also a useful feature. We use deck.gl for rendering, and I see that their doc for orbitView does indeed support min and max zoom. So we would just need to add these options to our api.
I am using the SandDance core visualization canvas and was able to change the text scale. It helps but I think limiting the zoom level would indeed be the better solution. Thanks again!
I'll give this a go!