File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ const SunburstChart = (props: SunburstElementProps) => {
79
79
. onHover ( ( node : any ) => {
80
80
setSelectedNode ( node ) ;
81
81
} )
82
+ . width ( 800 )
82
83
. tooltipContent ( ( d : any , node : any ) => `Size: <i>${ node . value } </i>` ) (
83
84
chartRef . current
84
85
) ;
@@ -91,7 +92,7 @@ const SunburstChart = (props: SunburstElementProps) => {
91
92
}
92
93
} , [ selectedNode ] ) ;
93
94
94
- return < div ref = { chartRef } > </ div > ;
95
+ return < div ref = { chartRef } className = "max-w-[800px] z-0" > </ div > ;
95
96
} ;
96
97
97
98
export default SunburstChart ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const TopNavigation: React.FC<Props> = ({
35
35
36
36
return (
37
37
< >
38
- < div className = "flex justify-between items-center border border-top-nav-border rounded w-28 h-9 p-2 bg-primary" >
38
+ < div className = "flex justify-between items-center border border-top-nav-border rounded w-28 h-9 p-2 bg-primary z-[9999] " >
39
39
< IconButton className = "!p-0" onClick = { ( ) => { } } >
40
40
< HelpOutlineOutlinedIcon className = "w-5 h-5 !fill-white cursor-pointer" />
41
41
</ IconButton >
Original file line number Diff line number Diff line change @@ -62,14 +62,14 @@ export default function Index() {
62
62
< div className = "min-h-screen flex flex-col justify-between relative" >
63
63
< div className = "absolute left-0 top-0 sm:ml-auto sm:mr-auto sm:left-0 sm:right-0" >
64
64
< HeaderIcon className = "ml-4 mt-4" />
65
- < div className = "hidden sm:block absolute right-0 top-0 mt-4 mr-4" >
66
- < TopNavigation
67
- newNotifications = { newNotifications }
68
- notifications = { notifications }
69
- />
70
- </ div >
71
65
</ div >
72
- { ! jsonData ? < Loader /> : < SunburstChart data = { jsonData } /> }
66
+ < div className = "hidden sm:block absolute right-0 top-0 mt-4 mr-4" >
67
+ < TopNavigation
68
+ newNotifications = { newNotifications }
69
+ notifications = { notifications }
70
+ />
71
+ </ div >
72
+ { ! jsonData ? < Loader /> : < div className = "min-h-screen flex flex-col justify-between items-center" > < SunburstChart data = { jsonData } /> </ div > }
73
73
< div className = "hidden sm:block absolute bottom-0 left-0 mb-4 ml-4" >
74
74
< Breadcrumb
75
75
path = { [ "Data and Simulation Generation" , "Customer Segmentation" ] }
You can’t perform that action at this time.
0 commit comments