Skip to content

Commit

Permalink
Removed use of ColorScale
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Dec 20, 2024
1 parent c75d20d commit 9dc3320
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
wcc.WebvizPluginPlaceholder(
id="some-other-plugin",
children=[
wcc.ColorScales(id="colorscale"),
wcc.Graph(
id="example-graph",
figure={
Expand Down Expand Up @@ -252,17 +251,6 @@
]
)


@app.callback(
Output("example-graph", "figure"),
[Input("colorscale", "colorscale")],
[State("example-graph", "figure")],
)
def update_colors(colorscale, figure):
figure["layout"]["colorway"] = colorscale
return figure


@app.callback(
Output("output", "children"),
[
Expand Down

0 comments on commit 9dc3320

Please sign in to comment.