plotly / angular-plotly.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Templates in angular-plotly.js?

jabbarn opened this issue · comments

Hi there

I was wondering if there are templates in angular-plotly.js since there are in the python version.

import plotly.express as px

df = px.data.gapminder()
df_2007 = df.query("year==2007")

for template in ["plotly", "plotly_white", "plotly_dark", "ggplot2", "seaborn", "simple_white", "none"]:
    fig = px.scatter(df_2007,
                     x="gdpPercap", y="lifeExp", size="pop", color="continent",
                     log_x=True, size_max=60,
                     template=template, title="Gapminder 2007: '%s' theme" % template)
    fig.show()

source: https://plotly.com/python/templates/

I'm wondering the same thing a year later.

is it supported ?

please add this feature