From 8fd7d4b670dd2a09e0012183b4d213246ca47974 Mon Sep 17 00:00:00 2001 From: Thomas Wang <17309187+datability-io@users.noreply.github.com> Date: Mon, 22 Apr 2019 11:53:08 -0700 Subject: [PATCH] improve not rich tooltip (#7345) --- superset/viz.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/viz.py b/superset/viz.py index 026581e142..7607675e6b 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1230,7 +1230,9 @@ class NVD3TimeSeriesViz(NVD3Viz): comparison_type = fd.get('comparison_type') or 'values' df = self.process_data(df) if comparison_type == 'values': - chart_data = self.to_series(df) + # Filter out series with all NaN + chart_data = self.to_series(df.dropna(axis=1, how='all')) + for i, (label, df2) in enumerate(self._extra_chart_data): chart_data.extend( self.to_series(