This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch lyftga
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/lyftga by this push:
     new 8fd7d4b  improve not rich tooltip (#7345)
8fd7d4b is described below

commit 8fd7d4b670dd2a09e0012183b4d213246ca47974
Author: Thomas Wang <[email protected]>
AuthorDate: Mon Apr 22 11:53:08 2019 -0700

    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 026581e..7607675 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(

Reply via email to