@@ -38,7 +38,7 @@ export type BarStackProps = {
38
38
/* DEFAULT STYLING */
39
39
const axisColor = '#679DCA' ;
40
40
const background = "#242529" ;
41
- const defaultMargin = { top : 40 , right : 30 , bottom : 0 , left : 35 } ;
41
+ const defaultMargin = { top : 60 , right : 30 , bottom : 0 , left : 50 } ;
42
42
const tooltipStyles = {
43
43
...defaultStyles ,
44
44
minWidth : 60 ,
@@ -138,7 +138,7 @@ const colorScale = scaleOrdinal<CityName, string>({
138
138
// setting max dimensions and scale ranges
139
139
if ( width < 10 ) return null ;
140
140
const xMax = width - margin . left - margin . right
141
- const yMax = height - margin . top - 100 ;
141
+ const yMax = height - margin . top - 150 ;
142
142
snapshotIdScale . rangeRound ( [ 0 , xMax ] ) ;
143
143
renderingScale . range ( [ yMax , 0 ] ) ;
144
144
@@ -215,8 +215,6 @@ renderingScale.range([yMax, 0]);
215
215
stroke = { axisColor }
216
216
tickStroke = { axisColor }
217
217
strokeWidth = { 2 }
218
- numTicks = { 8 }
219
- hideZero = { true }
220
218
tickLabelProps = { ( ) => ( {
221
219
fill : axisColor ,
222
220
fontSize : 11 ,
@@ -237,14 +235,15 @@ renderingScale.range([yMax, 0]);
237
235
textAnchor : 'middle' ,
238
236
} ) }
239
237
/>
240
- < Text x = "-100" y = "15" transform = "rotate(-90)" fontSize = { 10 } fill = "#00FFFF" >
241
- Rendering Time
242
- </ Text >
238
+ < Text x = { - xMax / 2 } y = "15" transform = "rotate(-90)" fontSize = { 10 } fill = "#FFFFFF" >
239
+ Rendering Time (ms)
240
+ </ Text >
241
+ < Text x = { xMax / 2 } y = { yMax + 100 } fontSize = { 10 } fill = "#FFFFFF" >
242
+ Snapshot Id
243
+ </ Text >
243
244
244
245
</ svg >
245
246
246
-
247
- // OPTIONAL legend
248
247
{ /* <div
249
248
style={{
250
249
position: "absolute",
0 commit comments