My range is stored in this range $ctrl.chart.layout.xaxis.range, $ctrl.chart.layout.yaxis.range. Is there a configuration command that prevents this from happening? Because even when storing the data else where, inject it back in and then calling that method it still zooms back out.
Thank you very much for your time
I believe you are looking for uirevision. Here is the link to the docs:
Hope this helps!
Sorry it hasn’t fixed my problem. However, I might have found a possible solution.
I have an object Chart, that has .text, .x, and .y. When I change the visible of .text = hidden/legendonly, it also changes the .y?
Same thing when changing the value of .text, it also changes the .y values as well. Is there anyway to change specifically just the .text visible / value? This causes the entire chart to be blank due to it also changing the value of .y.
I am following the example you have given, to redraw the plot after. That works fine. What I have is a work in progress, sorry for the mess.
You can see here as I’m stepping through, the code hasn’t reached the .y to reassign it due to the .text overwriting both .text and .y as if they’re referencing each other.