From 9217d4222e9d42b54c91e3d5c5bc9f30c72ef618 Mon Sep 17 00:00:00 2001 From: Mike Prosser Date: Wed, 25 Jun 2025 14:59:49 -0500 Subject: [PATCH] key="graph" and time.sleep(0.1) --- examples/simple_graph/simple_graph.py | 2 +- examples/simple_graph/simple_graph_panel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/simple_graph/simple_graph.py b/examples/simple_graph/simple_graph.py index ab79929..4b63530 100644 --- a/examples/simple_graph/simple_graph.py +++ b/examples/simple_graph/simple_graph.py @@ -32,7 +32,7 @@ # Slowly vary the frequency for a more dynamic visualization frequency = 1.0 + 0.5 * math.sin(time.time() / 5.0) - time.sleep(1) + time.sleep(0.1) except KeyboardInterrupt: print("Exiting...") diff --git a/examples/simple_graph/simple_graph_panel.py b/examples/simple_graph/simple_graph_panel.py index 6fde157..266a34a 100644 --- a/examples/simple_graph/simple_graph_panel.py +++ b/examples/simple_graph/simple_graph_panel.py @@ -56,4 +56,4 @@ } # Display the chart -st_echarts(options=options, height="400px") +st_echarts(options=options, height="400px", key="graph")