Franklin + Plotly

The convenience function fdplotly helps to extract the relevant HTML from a plotly plot via json (don't forget json! see examples); you can then place it using \textoutput (see examples). The fdplotly function takes two optional keyword arguments:

We show some examples drawn from the PlotlyJS examples.

Examples

Line scatter

Original file

plt = linescatter1()
fdplotly(json(plt), style="width:400px;height:250px;margin-left:auto;margin-right:auto;")
plt = batman()
fdplotly(json(plt))

Ternary

Original file

CC BY-SA 4.0 The Oracle. Last modified: September 13, 2023. Website built with Franklin.jl and the Julia programming language.