JuliaPlots / PlotlyJS.jl

Julia library for plotting with plotly.js
Other
418 stars 77 forks source link

Templates not working #431

Closed musm closed 2 years ago

musm commented 2 years ago

I was hoping the following would set the template to ggplot2 but alas. I'm not exactly sure what the issue is with the call?

using PlotlyJS

config = PlotConfig(doubleClickDelay=1000)

trace = bar(
    y = [3, 5, 3, 2],
    x = ["2019-09-02", "2019-10-10", "2019-11-12", "2019-12-22"],
    texttemplate = "%{label}",
    textposition = "inside"
)

layout = Layout(xaxis_type= "date",template="ggplot2")

plot(trace, layout)
empet commented 2 years ago

It works like that:

layout = Layout(xaxis_type= "date", template=templates["ggplot2"])
musm commented 2 years ago

Thank you, would be great to document!