File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ import { BarStack } from "@visx/shape";
3
3
import { SeriesPoint } from "@visx/shape/lib/types" ;
4
4
import { Group } from "@visx/group" ;
5
5
import { Grid } from "@visx/grid" ;
6
- import { AxisBottom } from "@visx/axis" ;
6
+ import { AxisBottom , AxisLeft } from "@visx/axis" ;
7
7
import { scaleBand , scaleLinear , scaleOrdinal } from "@visx/scale" ;
8
8
import { useTooltip , useTooltipInPortal , defaultStyles } from "@visx/tooltip" ;
9
9
// import { LegendOrdinal } from "@visx/legend";
10
+ import { Text } from '@visx/text' ;
10
11
import { schemeSet1 , schemeSet3 } from "d3-scale-chromatic" ;
11
12
// import snapshots from "./snapshots";
12
13
import useForceUpdate from './useForceUpdate' ;
@@ -207,19 +208,35 @@ renderingScale.range([yMax, 0]);
207
208
}
208
209
</ BarStack >
209
210
</ Group >
211
+ < AxisLeft
212
+ top = { margin . top }
213
+ left = { margin . left }
214
+ scale = { renderingScale }
215
+ stroke = { axisColor }
216
+ tickStroke = { axisColor }
217
+ strokeWidth = { 2 }
218
+ tickLabelProps = { ( ) => ( {
219
+ fill : axisColor ,
220
+ fontSize : 11 ,
221
+ verticalAnchor : 'start' ,
222
+ } ) }
223
+ />
210
224
< AxisBottom
211
225
top = { yMax + margin . top }
212
226
left = { margin . left }
213
227
scale = { snapshotIdScale }
214
228
stroke = { axisColor }
215
229
tickStroke = { axisColor }
230
+ strokeWidth = { 2 }
216
231
tickLabelProps = { ( ) => ( {
217
232
fill : axisColor ,
218
233
fontSize : 11 ,
219
234
textAnchor : 'middle' ,
220
235
} ) }
221
236
/>
237
+
222
238
</ svg >
239
+
223
240
224
241
// OPTIONAL legend
225
242
{ /* <div
You can’t perform that action at this time.
0 commit comments