@@ -273,7 +273,7 @@ export const ThreadMap: React.FC<ThreadMapPanelProps> = ({ options, data, width,
273273
274274 function drawThreadMap ( ) {
275275 //Redraw if new Min/Max Vals are specified
276- //if (condition ) {
276+ //if (oldMin !== newMin || oldMax !== newMax ) {
277277 d3 . select ( '#ThreadMapMain' ) . selectAll ( '*' ) . remove ( ) ;
278278 //}
279279 const svgTM = d3 . select ( '#ThreadMapMain' ) ;
@@ -501,6 +501,24 @@ export const ThreadMap: React.FC<ThreadMapPanelProps> = ({ options, data, width,
501501 . attr ( 'cy' , 60 )
502502 . attr ( 'r' , 10 )
503503 . style ( 'fill' , '#FF0000' )
504+ const ProcessText = d3 . select ( '#ThreadMapMain' ) . append ( 'text' )
505+ ProcessText
506+ . attr ( 'x' , 5 )
507+ . attr ( 'y' , 30 )
508+ . attr ( 'font-family' , 'Arial' )
509+ . attr ( 'font-size' , 20 )
510+ . attr ( 'fill' , 'White' )
511+ . attr ( 'font-weight' , 'bold' )
512+ . html ( 'Process:' )
513+ const ThreadText = d3 . select ( '#ThreadMapMain' ) . append ( 'text' )
514+ ThreadText
515+ . attr ( 'x' , 5 )
516+ . attr ( 'y' , 110 )
517+ . attr ( 'font-family' , 'Arial' )
518+ . attr ( 'font-size' , 18 )
519+ . attr ( 'fill' , 'White' )
520+ . attr ( 'font-weight' , 'bold' )
521+ . html ( 'Threads:' )
504522 }
505523
506524 } , [ options , data , height , width ] ) ;
@@ -509,8 +527,6 @@ export const ThreadMap: React.FC<ThreadMapPanelProps> = ({ options, data, width,
509527 < div >
510528 < CustomScrollbar >
511529 < svg id = "ThreadMapMain" height = { height - 100 } >
512- < text x = { ( 5 ) } y = { ( 30 ) } fontFamily = 'Arial' fontSize = '20' fill = 'White' fontWeight = 'bold' > Process:</ text >
513- < text x = { ( 5 ) } y = { ( 110 ) } fontFamily = 'Arial' fontSize = '18' fill = 'White' fontWeight = 'bold' > Threads:</ text >
514530 </ svg >
515531 </ CustomScrollbar >
516532 < svg id = "ThreadMapMinMax" >
0 commit comments