Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates not working #431

Closed
musm opened this issue Feb 10, 2022 · 2 comments
Closed

Templates not working #431

musm opened this issue Feb 10, 2022 · 2 comments

Comments

@musm
Copy link

musm commented Feb 10, 2022

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
Copy link

empet commented Feb 11, 2022

It works like that:

layout = Layout(xaxis_type= "date", template=templates["ggplot2"])

@musm musm closed this as completed Feb 11, 2022
@musm
Copy link
Author

musm commented Feb 11, 2022

Thank you, would be great to document!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants