aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: