Skip to content

Commit 77ab535

Browse files
committed
Add space between button and chart
1 parent 45b4328 commit 77ab535

File tree

1 file changed

+6
-5
lines changed
  • examples/visualizations/observable_plot

1 file changed

+6
-5
lines changed

examples/visualizations/observable_plot/app.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
@rt
2626
def index():
2727
return Div(
28-
H1(A("Observable", href="https://observablehq.com/@observablehq/plot", target="_blank"), " Plot Demo"),
29-
P("The data is randomly generated on the server and is fetched on initial page load."),
30-
P("Try opening the browser developer tools and viewing the Network tab to see the data reponse for each http request."),
31-
# On bytton click it sends a get request to the `get_data` route and puts the response in the `data-store` div
32-
Button("Fetch New Data", get=get_data, hx_target="#data-store", cls='btn btn-primary'),
28+
Section(
29+
H1(A("Observable", href="https://observablehq.com/@observablehq/plot", target="_blank"), " Plot Demo"),
30+
P("The data is randomly generated on the server and is fetched on initial page load."),
31+
P("Try opening the browser developer tools and viewing the Network tab to see the data reponse for each http request."),
32+
# On bytton click it sends a get request to the `get_data` route and puts the response in the `data-store` div
33+
Button("Fetch New Data", get=get_data, hx_target="#data-store")),
3334
# Store for the JSON chart data
3435
Div(id="data-store", get=get_data, hx_trigger="load", hidden=True),
3536
# Plot container

0 commit comments

Comments
 (0)