File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ class Chart extends Component {
48
48
maked3Tree ( ) {
49
49
50
50
this . removed3Tree ( ) ;
51
- const margin = {
52
- top : 0 ,
53
- right : 60 ,
54
- bottom : 200 ,
55
- left : 120 ,
56
- } ;
57
- const width = 600 - margin . right - margin . left ;
58
- const height = 700 - margin . top - margin . bottom ;
51
+ // const margin = {
52
+ // top: 0,
53
+ // right: 60,
54
+ // bottom: 200,
55
+ // left: 120,
56
+ // };
57
+ const width = 600 ; // - margin.right - margin.left;
58
+ const height = 600 ; // 700 - margin.top - margin.bottom;
59
59
const chartContainer = d3 . select ( this . chartRef . current )
60
60
. append ( 'svg' ) // chartContainer is now pointing to svg
61
61
. attr ( 'width' , width )
@@ -207,7 +207,11 @@ class Chart extends Component {
207
207
}
208
208
209
209
render ( ) {
210
- return < div ref = { this . chartRef } className = "d3Container" /> ;
210
+ return (
211
+ < div className = "history-d3-container" >
212
+ < div ref = { this . chartRef } className = "d3Container" />
213
+ </ div >
214
+ ) ;
211
215
}
212
216
}
213
217
Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ div.tooltip {
93
93
left : 0 ;
94
94
}
95
95
96
+ .history-d3-container {
97
+ display : flex;
98
+ flex-direction : column;
99
+ justify-content : space-between;
100
+ height : calc (100% - 70px );
101
+ /* border: 2px solid red; */
102
+ }
103
+
96
104
.perfContainer {
97
105
display : flex;
98
106
flex-direction : column;
You can’t perform that action at this time.
0 commit comments