mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[time table] use sparkData values in tooltip (#3794)
This commit is contained in:
parent
e6129eb492
commit
7483e2c942
@ -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>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user