Hey all!
I’d like to share a lightweight interface to create Plotly.js plots from Julia:
Since Plotly plots are generated from 3 JSON objects (data
, layout
, and config
), we simply JSON3.write
some EasyConfig.Config
s and the rest is up to you. This lets you use Plotly’s javascript docs directly and makes the package core super small (currently 158 lines including inline docs!).
Some highlights are below. See the README for more details:
Cool Features:
- Fastest time-to-first-plot in Julia! (as far as I can tell)
- Use the Plotly.js Javascript documentation directly. No magic syntax: Just
JSON3.write
.- Set deeply-nested keys easily with
EasyConfig.jl
.- e.g.
myplot.layout.xaxis.title.font.family = "Arial"
- e.g.
- Set deeply-nested keys easily with
- Plays nicely with Cobweb.jl to display and save plots.
- Plots will appear in
MIME"text/html"
environments (like Pluto.jl). - The Same built-in themes as Plotly’s python package.