I have a a gantt chart with too many data points, I would like to write a code snippet that renders the chart prezoomed, I already tried the layout scene, however it does not seem to have any effect
scene = list(camera = list(eye = list(x=0,y=25)))
plot β plot %>% layout(scene = scene)
I solved the issue by using the axis range, below is the code snippet
%>%layout(
xaxis = list(range = list(0, 4)),
yaxis = list(range = list(0, 15)))
Upon double clicking it will reset.