@@ -312,33 +312,25 @@ const BarGraphComparisonActions = props => {
312
312
color = { colorScale }
313
313
>
314
314
{ barStacks => barStacks . map ( barStack => barStack . bars . map ( ( bar ) => {
315
- console . log ( 'barstack' , barStack )
316
- console . log ( 'bar' , bar )
317
- // Hides new components if components don't exist in previous snapshots.
318
- // if (Number.isNaN(bar.bar[1]) || bar.height < 0) {
319
- // bar.height = 0;
320
- // }
315
+ console . log ( bar )
321
316
return (
322
317
< rect
323
- key = { `bar-stack-${ barStack . id } -${ bar . id } ` }
318
+ key = { `bar-stack-${ bar . bar . data . seriesName } -${ bar . key } ` }
324
319
x = { bar . x }
325
320
y = { bar . y }
326
321
height = { bar . height === 0 ? null : bar . height }
327
322
width = { bar . width }
328
323
fill = { bar . color }
329
- /* TIP TOOL EVENT HANDLERS */
330
- // Hides tool tip once cursor moves off the current rect.
324
+ /* TIP TOOL EVENT HANDLERS */
325
+ // Hides tool tip once cursor moves off the current rect.
331
326
onMouseLeave = { ( ) => {
332
- dispatch (
333
- onHoverExit ( data . componentData [ bar . key ] . rtid ) ,
334
- ( tooltipTimeout = window . setTimeout ( ( ) => {
335
- hideTooltip ( ) ;
336
- } , 300 ) ) ,
337
- ) ;
327
+ tooltipTimeout = window . setTimeout ( ( ) => {
328
+ hideTooltip ( ) ;
329
+ } , 300 ) ;
338
330
} }
339
- // Cursor position in window updates position of the tool tip.
331
+ // Cursor position in window updates position of the tool tip.
340
332
onMouseMove = { event => {
341
- dispatch ( onHover ( data . componentData [ bar . key ] . rtid ) ) ;
333
+ // dispatch(onHover(data.componentData[bar.key].rtid));
342
334
if ( tooltipTimeout ) clearTimeout ( tooltipTimeout ) ;
343
335
const top = event . clientY - margin . top - bar . height ;
344
336
const left = bar . x + bar . width / 2 ;
@@ -404,9 +396,10 @@ const BarGraphComparisonActions = props => {
404
396
< div style = { { color : colorScale ( tooltipData . key ) } } >
405
397
{ ' ' }
406
398
< strong > { tooltipData . key } </ strong >
399
+ { console . log ( tooltipData ) }
407
400
{ ' ' }
408
401
</ div >
409
- < div > { data . componentData [ tooltipData . key ] . stateType } </ div >
402
+ { /* <div>{data.componentData[tooltipData.key].stateType}</div> */ }
410
403
< div >
411
404
{ ' ' }
412
405
{ formatRenderTime ( tooltipData . bar . data [ tooltipData . key ] ) }
@@ -415,7 +408,7 @@ const BarGraphComparisonActions = props => {
415
408
< div >
416
409
{ ' ' }
417
410
< small >
418
- { formatSnapshotId ( getSnapshotId ( tooltipData . bar . data ) ) }
411
+ { tooltipData . bar . data . seriesName }
419
412
</ small >
420
413
</ div >
421
414
</ TooltipInPortal >
0 commit comments