Status of Plotly Availability / Development in Julia?

Hi Community,

I am quite new in Julia but I have already seen that Plotly does a great job in creating interactive plots.

But it seems that https://plotly.com/julia/ has a lot of dead links such as https://plotly.com/julia/scientific-charts/ and in addition, a lot of features which are existing for Python like Mapbox Density Heatmap, are not available for Julia. On the other side, there are pages like https://plotly.com/julia/sankey-diagram/ but without to be linked within https://plotly.com/julia/

Does one know, if such plotting feature as Mapbox Density Heatmaps will be available also for Julia within the next future or are there signs / hints, that plotly has no great future in combination with Julia?

3 Likes

It’s PlotlyJS.jl package, a Julia equivalent to plotly.py, not Plotly.jl.

Almost all of plotly is written in Javascript, which means it generally has wide portability everywhere.

The various plotly language API wrappers just serialize data and the layout into JSON and then render it using the client (in browser) library which is written in JavaScript.

2 Likes

Ok, this means, that someone has to write further wrappers in order to use several plotly functions which are already available for instance in Python?

No, PlotlyJS.jl, a Julia package, provides all Plotly traces you can see on their site.
https://github.com/sglyon/PlotlyBase.jl/blob/master/src/api.jl#L25

1 Like

I think everything from plotly.js is accessible from Julia.
The documentation albeit much improved in the last months is probably still not fully up to date with Python counterparts (at least for examples).

Once you learn the basic translation steps between Javascript plotly and Julia through PlotlyJS/PlotlyBase you can easily reproduce everything.

I suggest you have a look at the package documentation of PlotlyJS where the building blocks for representing plotly.js objects in Julia is explained

2 Likes

Check out this fantastic gallery: Not a question, but a 3D PlotlyJS gallery

2 Likes

I have seen it, that is really fantastic. I wished to get some further information how in https://github.com/empet/3D-Viz-with-PlotlyJS.jl/blob/main/1-Surface-and-contour-lines-and-their-projections.ipynb this part

Animation: falling balls along F-gradient field lines, lifted to the surface (![$\dot{X}=\nabla F$](https://render.githubusercontent.com/render/math?math=%5Cdot%7BX%7D%3D%5Cnabla%20F&mode=inline) was integrated with DifferentialEquations.jl, frames generated by PlotlyJS.jl, and animated with Plotly.jl).:

has been realized in more detail

Tomorrow I’ll give you some pointers.
Meanwhile I modified it , and this is the new version https://github.com/empet/3D-Viz-with-PlotlyJS.jl/blob/main/images/falling-gradientFL.gif

2 Likes

Hello Dieter,
thank you very much for reporting the issues with Julia’s index pages.
Plotly documentation has been undergoing big changes recently, and what you found was an artifact of the update where the process of creating documentation in new languages was simplified. Everything is fixed now.

Regarding pages that are available in Python but missing from Julia documentation - Mapbox Density Heatmap for example, all of these are noted down and in the process of being/planned to be written.

Now that the indexes work, you can find Sankey Diagram in the “Basic Chart” section.

There are big plans for Plotly in Julia, better documentation and more beautiful plots will be implemented and added to the library for users to find and adapt to their needs! Moreover there is Julia Dash :slight_smile:

5 Likes

The latest docs are here Dash Documentation & User Guide | Plotly.

1 Like

Thanks Danton,

Yes, all subpages are accessible now and I am looking forward to see new types of diagrams and plots!
Great Job!