You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by gr...@apache.org on 2017/11/07 23:52:55 UTC

[incubator-superset] branch master updated: [time table] use sparkData values in tooltip (#3794)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7483e2c  [time table] use sparkData values in tooltip (#3794)
7483e2c is described below

commit 7483e2c942d974b6c8039796a36fc110edf49275
Author: Chris Williams <wi...@users.noreply.github.com>
AuthorDate: Tue Nov 7 15:52:51 2017 -0800

    [time table] use sparkData values in tooltip (#3794)
---
 superset/assets/visualizations/time_table.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/assets/visualizations/time_table.jsx b/superset/assets/visualizations/time_table.jsx
index 42e929e..cb145c8 100644
--- a/superset/assets/visualizations/time_table.jsx
+++ b/superset/assets/visualizations/time_table.jsx
@@ -87,8 +87,8 @@ function viz(slice, payload) {
           display: (
             <WithTooltip
               renderTooltip={({ index }) => (
-                <div style={{ minWidth: 140 }}>
-                  <strong>{d3format(c.d3format, data[index][metric])}</strong>
+                <div>
+                  <strong>{d3format(c.d3format, sparkData[index])}</strong>
                   <div>{formatDate(data[index].iso)}</div>
                 </div>
               )}

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].