Skip to content

Commit 4c12ab4

Browse files
committed
🔍 reviewing examples
1 parent 4125b1b commit 4c12ab4

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

examples/dash_apps/04_minimal_cache_overview.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
# --------------------------------------Globals ---------------------------------------
36-
# NOTE: Remark how the assests folder is passed to the Dash(proxy) application and how
36+
# NOTE: Remark how the assets folder is passed to the Dash(proxy) application and how
3737
# the lodash script is included as an external script.
3838
app = DashProxy(
3939
__name__,
@@ -47,7 +47,7 @@
4747
html.H1("plotly-resampler + dash-extensions", style={"textAlign": "center"}),
4848
html.Button("plot chart", id="plot-button", n_clicks=0),
4949
html.Hr(),
50-
# The graph, overview graph, and servside store for the FigureResampler graph
50+
# The graph, overview graph, and serverside store for the FigureResampler graph
5151
dcc.Graph(id=GRAPH_ID),
5252
dcc.Graph(id=OVERVIEW_GRAPH_ID),
5353
dcc.Loading(dcc.Store(id=STORE_ID)),

examples/dash_apps/05_cache_overview_subplots.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838

3939
# --------------------------------------Globals ---------------------------------------
40-
# NOTE: Remark how the assests folder is passed to the Dash(proxy) application and how
40+
# NOTE: Remark how the assets folder is passed to the Dash(proxy) application and how
4141
# the lodash script is included as an external script.
4242
app = DashProxy(
4343
__name__,
@@ -51,7 +51,7 @@
5151
html.H1("plotly-resampler + dash-extensions", style={"textAlign": "center"}),
5252
html.Button("plot chart", id="plot-button", n_clicks=0),
5353
html.Hr(),
54-
# The graph, overview graph, and servside store for the FigureResampler graph
54+
# The graph, overview graph, and serverside store for the FigureResampler graph
5555
dcc.Graph(id=GRAPH_ID),
5656
dcc.Graph(id=OVERVIEW_GRAPH_ID),
5757
dcc.Loading(dcc.Store(id=STORE_ID)),

examples/dash_apps/06_cache_overview_range_buttons.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
1212
Lastly, there is a button present to reset the axes of the main graph. This button
1313
replaces the default reset axis button as the default button removes the spikes.
14+
(specifically, the `xaxis.showspikes` and `yaxis.showspikes` are set to False; This is
15+
most likely a bug in plotly-resampler, but I have not yet found out why).
1416
1517
This example uses the dash-extensions its ServersideOutput functionality to cache
1618
the FigureResampler per user/session on the server side. This way, no global figure
@@ -42,11 +44,8 @@
4244
STORE_ID = "store"
4345
PLOT_BTN_ID = "plot-button"
4446

45-
# fmt: off
46-
# fmt: on
47-
4847
# --------------------------------------Globals ---------------------------------------
49-
# NOTE: Remark how the assests folder is passed to the Dash(proxy) application and how
48+
# NOTE: Remark how the assets folder is passed to the Dash(proxy) application and how
5049
# the lodash script is included as an external script.
5150
app = DashProxy(
5251
__name__,
@@ -60,7 +59,7 @@
6059
html.H1("plotly-resampler + dash-extensions", style={"textAlign": "center"}),
6160
html.Button("plot chart", id=PLOT_BTN_ID, n_clicks=0),
6261
html.Hr(),
63-
# The graph, overview graph, and servside store for the FigureResampler graph
62+
# The graph, overview graph, and serverside store for the FigureResampler graph
6463
dcc.Graph(
6564
id=GRAPH_ID,
6665
config={"modeBarButtonsToRemove": ["resetscale"]},

0 commit comments

Comments
 (0)