aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:01:51 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:01:51 -0600
commit0d47b64f9219cdb36287e082b6ce510b6b6c2560 (patch)
treeff1398a5a1fb049ee94bc79fa65557ff9da44ad5
parentf3fb5699b682124d10b997917aa4c04f8034438b (diff)
check trendline_equation
-rw-r--r--api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/api.py b/api.py
index 60144fd..c9b8c5d 100644
--- a/api.py
+++ b/api.py
@@ -64,6 +64,9 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
handles = plots
+ if trendline_equation == "":
+ trendline_equation = None
+
if enable_trendline:
if trendline_equation != None:
try: