# \#plotlyjs

**URL:** https://discourse.julialang.org/tag/plotlyjs/643.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\`legend\_groupclick = "toggleitem"\` doesn't seem to work in PlotlyJS](https://discourse.julialang.org/t/legend-groupclick-toggleitem-doesnt-seem-to-work-in-plotlyjs/76851)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 5\
**Last updated:** [April 16, 2026, 3:19pm UTC](https://discourse.julialang.org/t/legend-groupclick-toggleitem-doesnt-seem-to-work-in-plotlyjs/76851 "2026-04-16T15:19:48Z")

</div>

Currently legend\_groupclick="toggleitem" doesn’t seem to work as can be tested in the result of using PlotlyJS function getData() x = range(start=0, stop=10, length=101) y1 = sin.(x) y2 = sin.(x) .- 0.1 …

---

## [PlotlyJS function to plot with up to 4 Y-axes](https://discourse.julialang.org/t/plotlyjs-function-to-plot-with-up-to-4-y-axes/136184)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [March 13, 2026, 1:42pm UTC](https://discourse.julialang.org/t/plotlyjs-function-to-plot-with-up-to-4-y-axes/136184 "2026-03-13T13:42:10Z")

</div>

Below an idea for a PlotlyJS-based user defined plotting function. The function can be called with an x-vector and an y-vector/-array. And it can handle up to 4-y-axes as well. I am happy about comments. """ pri…

---

## [PlotlyJS: plot multiple times in the same display window?](https://discourse.julialang.org/t/plotlyjs-plot-multiple-times-in-the-same-display-window/135958)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 3\
**Last updated:** [March 6, 2026, 5:42pm UTC](https://discourse.julialang.org/t/plotlyjs-plot-multiple-times-in-the-same-display-window/135958 "2026-03-06T17:42:00Z")

</div>

Package specific question. Package: PlotlyJS Question: Hi, Is it possible, to plot multiple times in the same plot window? Similar to the Plots-behaviour / GKS QtTerm. Regards, Stefan

---

## [How to display PlotlyJS plots in browser (instead of Electron window)?](https://discourse.julialang.org/t/how-to-display-plotlyjs-plots-in-browser-instead-of-electron-window/60451)

<div class="topic-metadata">

**Author:** [@RastislavMirek](https://discourse.julialang.org/u/RastislavMirek)\
**Replies:** 12\
**Last updated:** [March 2, 2026, 3:08pm UTC](https://discourse.julialang.org/t/how-to-display-plotlyjs-plots-in-browser-instead-of-electron-window/60451 "2026-03-02T15:08:46Z")

</div>

I am using PlotlyJS (directly, not as a backend to Plots), to display plots in Electron window (via Blink). I would like to display those plots in a browser instead. Obviously, it’s possible because Plots can do it when …

---

## [Using environment variables with Plots](https://discourse.julialang.org/t/using-environment-variables-with-plots/132842)

<div class="topic-metadata">

**Author:** [@J-Holger](https://discourse.julialang.org/u/J-Holger)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 12:39pm UTC](https://discourse.julialang.org/t/using-environment-variables-with-plots/132842 "2025-10-06T12:39:07Z")

</div>

Hi! I’m using the Plots (v1.41.1) package to create and save figures in Julia. Currently, I’m using PlotlyJS as backend and everything works well. The problem is that my application does not have access to internet so I…

---

## [Plots with PlotlyJS error](https://discourse.julialang.org/t/plots-with-plotlyjs-error/131303)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 4\
**Last updated:** [August 2, 2025, 7:31pm UTC](https://discourse.julialang.org/t/plots-with-plotlyjs-error/131303 "2025-08-02T19:31:52Z")

</div>

I am trying to use Plots with the PlotlyJS backend. Using 1.11.6 on Win 11 my code snippet is: using Plots using PlotlyKaleido using PlotlyJS plotlyjs() I get this message: Precompiling PlotlyJS... Info Given Plotly…

---

## [Raddar/spider image](https://discourse.julialang.org/t/raddar-spider-image/130608)

<div class="topic-metadata">

**Author:** [@AbdelazimHussien](https://discourse.julialang.org/u/AbdelazimHussien)\
**Replies:** 0\
**Last updated:** [July 10, 2025, 1:20pm UTC](https://discourse.julialang.org/t/raddar-spider-image/130608 "2025-07-10T13:20:38Z")

</div>

Hello I am developing a package for metaheuristics algorithms named MetaheuristicsAlgorithms I wanna make a raddar image I write the following trace = scatterpolar( r = mean\_fitness, theta = label…

---

## [PlotlyJS update subplot traces in-place](https://discourse.julialang.org/t/plotlyjs-update-subplot-traces-in-place/130432)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 8:35pm UTC](https://discourse.julialang.org/t/plotlyjs-update-subplot-traces-in-place/130432 "2025-07-02T20:35:43Z")

</div>

In PlotlyJS, I can update a trace in-place using react!() as mentioned in the docs: tr = scatter(;y=rand(5)) p = plot(tr) tr\[:y\] .= rand(5) react!(p,\[tr\],Layout()) However, I don’t see any information on how to do in-p…

---

## [Orthonormal axes in layout of PlotlyJS plot (as set\_aspect="equal" in python)](https://discourse.julialang.org/t/orthonormal-axes-in-layout-of-plotlyjs-plot-as-set-aspect-equal-in-python/128463)

<div class="topic-metadata">

**Author:** [@jowsky](https://discourse.julialang.org/u/jowsky)\
**Replies:** 4\
**Last updated:** [April 27, 2025, 8:39pm UTC](https://discourse.julialang.org/t/orthonormal-axes-in-layout-of-plotlyjs-plot-as-set-aspect-equal-in-python/128463 "2025-04-27T20:39:02Z")

</div>

Hello there, I am trying to plot a PlotlyJS 2D scatter plot with orthonormal axes, i.e. x and y axes of same scale, much like set\_aspect="equal" in matplotlib.pyplot in python. Unfortunately, I can’t manage to do it. I…

---

## [How to change PlotlyJS theme](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 4\
**Last updated:** [April 27, 2025, 7:39am UTC](https://discourse.julialang.org/t/how-to-change-plotlyjs-theme/128435 "2025-04-27T07:39:21Z")

</div>

I begin to use PlotlyJS and I wonder how to change the theme. I also wonder about the right Plotly julia package (PlotlyJS/PlotlyLight). Best

---

## [PlotlyJS backend not working in Jupyter Notebook on VS Code](https://discourse.julialang.org/t/plotlyjs-backend-not-working-in-jupyter-notebook-on-vs-code/95827)

<div class="topic-metadata">

**Author:** [@y0avd](https://discourse.julialang.org/u/y0avd)\
**Replies:** 7\
**Last updated:** [April 22, 2025, 7:46pm UTC](https://discourse.julialang.org/t/plotlyjs-backend-not-working-in-jupyter-notebook-on-vs-code/95827 "2025-04-22T19:46:40Z")

</div>

The following code: using Plots plotlyjs() plot(rand(10,4),rand(10,4),rand(10,4)) Runs perfectly fine as a .jl in my vscode environment, but the same code just runs forever when inside of a Jupyter notebook in VS Cod…

---

## [Plotly in Julia - Questions](https://discourse.julialang.org/t/plotly-in-julia-questions/127727)

<div class="topic-metadata">

**Author:** [@Episki](https://discourse.julialang.org/u/Episki)\
**Replies:** 11\
**Last updated:** [April 6, 2025, 9:50am UTC](https://discourse.julialang.org/t/plotly-in-julia-questions/127727 "2025-04-06T09:50:34Z")

</div>

Hi community, I’m re-starting my Julia journey since at work we have a toy project with it. I have a question regarding the use of Plotly in Julia, since it is the graphing library I mostly use in Python: What is the…

---

## [PlotlyJS backend via Plots.jl very slow with images](https://discourse.julialang.org/t/plotlyjs-backend-via-plots-jl-very-slow-with-images/126506)

<div class="topic-metadata">

**Author:** [@alex180500](https://discourse.julialang.org/u/alex180500)\
**Replies:** 0\
**Last updated:** [March 3, 2025, 5:26pm UTC](https://discourse.julialang.org/t/plotlyjs-backend-via-plots-jl-very-slow-with-images/126506 "2025-03-03T17:26:39Z")

</div>

I was trying to do a plot with a basic image raster as a background when I stumbled into an issue, plotlyJS is painfully slow when using raster images, making it very hard to work with. Minimal example: using FileIO: l…

---

## [Variable from app.jl into script.js](https://discourse.julialang.org/t/variable-from-app-jl-into-script-js/125387)

<div class="topic-metadata">

**Author:** [@ReLoneR](https://discourse.julialang.org/u/ReLoneR)\
**Replies:** 0\
**Last updated:** [January 30, 2025, 12:02pm UTC](https://discourse.julialang.org/t/variable-from-app-jl-into-script-js/125387 "2025-01-30T12:02:23Z")

</div>

Hi, lets say i have an app.jl that have this variables app.jl : ... @app begin @out firstX = \[1, 2, 3, 4, 5\] @out firstY = \[5, 0, 3, -1, 2\] ... @page("/", "public/index\_ui.jl.html", layout = "public/index\_layou…

---

## [Setting inner size of figures generated by Plots.jl nside Pluto notebook](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 0\
**Last updated:** [January 10, 2025, 11:34am UTC](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635 "2025-01-10T11:34:39Z")

</div>

Currently I’m code follows as below using Plots; gr(size=(600,600)) begin Plots.plot(\[3,4\],\[10,8\]) Plots.plot!(twinx(),\[.8,.2\],\[.4,-4\]) Plots.plot!(xguidefontsize=20,yguidefontsize=20, tickfontsize=20, fontfamily=…

---

## [Double yaxis using plotlyjs() as backend](https://discourse.julialang.org/t/double-yaxis-using-plotlyjs-as-backend/123978)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 3\
**Last updated:** [December 20, 2024, 5:30am UTC](https://discourse.julialang.org/t/double-yaxis-using-plotlyjs-as-backend/123978 "2024-12-20T05:30:38Z")

</div>

Hello, there, I want plot δGDP and δM2 vs Year on left yaxis, whereas δGDP/δM2 vs Year on the right side Here is my code: anyon can help me with plot!? Thanks! using Plots plotlyjs() begin p = plot( Year, \[δM2…

---

## [Plots.contourf and PlotlyJS.contour behaviour with regard to the x,y,z input](https://discourse.julialang.org/t/plots-contourf-and-plotlyjs-contour-behaviour-with-regard-to-the-x-y-z-input/122897)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 1\
**Last updated:** [November 22, 2024, 7:17pm UTC](https://discourse.julialang.org/t/plots-contourf-and-plotlyjs-contour-behaviour-with-regard-to-the-x-y-z-input/122897 "2024-11-22T19:17:52Z")

</div>

I have been using PlotlyJS.contour() in a program to plot data, but I need to switch to Plot.contourf(). I use PlotlyJS.contour(x=x,y=y,z=z) such that x::Vector and y::Vector contain the x and y coordinates of the point…

---

## [Multiple chart types in Plots.jl](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904)

<div class="topic-metadata">

**Author:** [@Valery](https://discourse.julialang.org/u/Valery)\
**Replies:** 2\
**Last updated:** [November 21, 2024, 8:25pm UTC](https://discourse.julialang.org/t/multiple-chart-types-in-plots-jl/122904 "2024-11-21T20:25:52Z")

</div>

Is it possible to have multiple chart types in a subplot using Plots.jl ? (the same way one could do it with PlotlyJS) I ideally would like to combine a contourf with a regular line plot (see example below) Reference: M…

---

## [Many subplots with one sublot consisting of a secondary y axis](https://discourse.julialang.org/t/many-subplots-with-one-sublot-consisting-of-a-secondary-y-axis/120827)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 3:30am UTC](https://discourse.julialang.org/t/many-subplots-with-one-sublot-consisting-of-a-secondary-y-axis/120827 "2024-11-07T03:30:03Z")

</div>

I was trying to extend the following example to incude more subplots I want to create subplots in which one subplot has a secondary y-axis. Everything works fine in the 2 sub plot case. my\_plot = PlotlyJS.make\_subplot…

---

## [Legend covers the yaxis](https://discourse.julialang.org/t/legend-covers-the-yaxis/122334)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 1:23am UTC](https://discourse.julialang.org/t/legend-covers-the-yaxis/122334 "2024-11-07T01:23:53Z")

</div>

using Plots plotlyjs() plot!( M2, x\_台湾, 货币\_台湾.M2./货币\_台湾.全體銀行放款餘額, label = "M2/全体银行放款余额", fg\_legend = :transparent, legend = :bottomleft, tickfontsize = 11, xticks = xt…

---

## [Number contours in PlotlyJS.contour](https://discourse.julialang.org/t/number-contours-in-plotlyjs-contour/122360)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 2\
**Last updated:** [November 7, 2024, 12:28am UTC](https://discourse.julialang.org/t/number-contours-in-plotlyjs-contour/122360 "2024-11-07T00:28:21Z")

</div>

Hi there, I would like to produce a contour plot of a quadratic function and I found a nice way to do so with PlotlyJS.contour but I am not able to customize the number of contours. It seems like the documentation gives …

---

## [Quiver plots with PlotlyJS](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 6\
**Last updated:** [September 30, 2024, 3:50pm UTC](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695 "2024-09-30T15:50:57Z")

</div>

Hi. I am using a code written by @empet here to produce a quiver plot using PlotlyJS. It works very well if the ranges of the two variables are the same (in a system of differential equations). For example, the code belo…

---

## [Layout not correct for plotlyjs backend](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567)

<div class="topic-metadata">

**Author:** [@arw](https://discourse.julialang.org/u/arw)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 6:17pm UTC](https://discourse.julialang.org/t/layout-not-correct-for-plotlyjs-backend/119567 "2024-09-18T18:17:31Z")

</div>

The following code plots two subplots side-by-side. Works fine if you are using the gr backend but does not when using the plotlyjs backend. The first subplot spreads across the whole figure while the second subplot is…

---

## [Plotly not working in Jupyter notebooks](https://discourse.julialang.org/t/plotly-not-working-in-jupyter-notebooks/119528)

<div class="topic-metadata">

**Author:** [@gmantegna](https://discourse.julialang.org/u/gmantegna)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 8:54pm UTC](https://discourse.julialang.org/t/plotly-not-working-in-jupyter-notebooks/119528 "2024-09-17T20:54:24Z")

</div>

Hi all. First time poster here. I’m a graduate student and TA and make heavy use of Jupyter notebooks with plots for teaching a Julia-based course. For over a year, the integration of Plotly with Jupyter notebooks has be…

---

## [LoadError: Cannot locate artifact 'kaleido' for aarch64-apple-darwin…](https://discourse.julialang.org/t/loaderror-cannot-locate-artifact-kaleido-for-aarch64-apple-darwin/115245)

<div class="topic-metadata">

**Author:** [@artbx25](https://discourse.julialang.org/u/artbx25)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 11:19am UTC](https://discourse.julialang.org/t/loaderror-cannot-locate-artifact-kaleido-for-aarch64-apple-darwin/115245 "2024-06-06T11:19:41Z")

</div>

Hi, I’m new to Julia and trying to run a project on a mac M1 with Julia v1.10 that needs the packages: ✗ PlotlyBase ✗ ORCA ✗ PlotlyJS However when trying to add them I get an error (they also can’t be precompiled). …

---

## [Can I customize tooltip in Plots using Plotly backend?](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 2:47pm UTC](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577 "2024-05-22T14:47:01Z")

</div>

Hi, Is there any way to customize the tooltip message in Plots using Plotly backend? For instance, I have the example below. using Plots plotly(ticks=:native) my\_plot = plot(\[1, 2, 4\], \[3, 4, 10\], title="Meu gráfico")…

---

## [Same color sequence with marker and line when using addtraces!](https://discourse.julialang.org/t/same-color-sequence-with-marker-and-line-when-using-addtraces/113641)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 2\
**Last updated:** [April 30, 2024, 12:21pm UTC](https://discourse.julialang.org/t/same-color-sequence-with-marker-and-line-when-using-addtraces/113641 "2024-04-30T12:21:41Z")

</div>

\# 实验数据散点图 using PlotlyJS EA\_293K = scatter(df, x = :C\_EA, y = :q\_EA\_293K, mode="markers", name = "293K") EA\_303K = scatter(df, x = :C\_EA, y = :q\_EA\_303K, mode="markers", name = "303K") EA\_313K = scatter(df, x = :C\_EA, y …

---

## [Connect points in for loop](https://discourse.julialang.org/t/connect-points-in-for-loop/113429)

<div class="topic-metadata">

**Author:** [@Sharara](https://discourse.julialang.org/u/Sharara)\
**Replies:** 15\
**Last updated:** [April 27, 2024, 12:00pm UTC](https://discourse.julialang.org/t/connect-points-in-for-loop/113429 "2024-04-27T12:00:02Z")

</div>

Dear all I am using PlotlyJS (I need its interactivity) it is my code: k1 = equ1 k2 = equ2 k3 = equ3 k4 = equ4 push!(k1\_x, real(k1)) push!(k1\_y, imag(k1)) push!(k2\_x, real(k2)) push!(k2\_y, imag(k2)) push!(k3\_x, real(…

---

## [Problem with hover display in heatmap with plotlyjs backend](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 7\
**Last updated:** [April 13, 2024, 1:56am UTC](https://discourse.julialang.org/t/problem-with-hover-display-in-heatmap-with-plotlyjs-backend/107586 "2024-04-13T01:56:59Z")

</div>

if i use the plotly backend to make a heatmap with a small number of categorical variables then everything is fine using Plots plotly() categories = string.(collect('a':'e')) n = length(categories) #5 heatmap(categorie…

---

## [Densitymapbox not working as expected](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 2:49pm UTC](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361 "2024-03-08T14:49:04Z")

</div>

Anyone has a working example? The examples I am running don’t produce the expected result: densitymapbox doesn't generate a valid visualization · Issue #484 · JuliaPlots/PlotlyJS.jl · GitHub

[Next page](https://discourse.julialang.org/tag/plotlyjs/643.md?match_all_tags=true&page=1&tags%5B%5D=plotlyjs)
