# Disabling zoom events for PlotlyJS backend for Plots.jl

**URL:** https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340
**Category:** Visualization
**Tags:** plotlyjs, plot
**Created:** [April 11, 2023, 10:48am UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340 "2023-04-11T10:48:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![viperML](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/viperml/32/48933_2.png) [@viperML](https://discourse.julialang.org/u/viperML)
#### Post date: [April 11, 2023, 10:48am UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340/1 "2023-04-11T10:48:35Z")

</div>

Hello 👋

I would like to disable zoom events for my interactive plot.

Apparently you can do this with plotly.js by setting this layout option: [Disable zoom events in JavaScript](https://plotly.com/javascript/disable-zoom/) `xaxis: {fixedrange: true}`

Is it possible to configure it in my `plot()` call (which in turn comes from StatsPlots.jl)

```julia
@df data plot(:ts, :value, 
    label="Measured", 
    marker=:circle,
    markersize=2,
)

```

You can find the example here: [nbviewer](https://nbviewer.org/github/viperML/ici-parsing/blob/515280a1f6a0c26b688fe03742d9748ff3c2848a/main.ipynb?flush_cache=true)

---

<div class="post-metadata">

### Author: ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)
#### Post date: [May 8, 2023, 11:34am UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340/2 "2023-05-08T11:34:44Z")

</div>

Hi and welcome. Are you still looking for an answer to this question?

---

<div class="post-metadata">

### Author: ![viperML](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/viperml/32/48933_2.png) [@viperML](https://discourse.julialang.org/u/viperML)
#### Post date: [May 8, 2023, 3:42pm UTC](https://discourse.julialang.org/t/disabling-zoom-events-for-plotlyjs-backend-for-plots-jl/97340/3 "2023-05-08T15:42:07Z")

</div>

I am not, but it would be nice to know if this is possible
