File tree 4 files changed +62
-0
lines changed
4 files changed +62
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ declare module '@nivo/core' {
87
87
text : Partial < React . CSSProperties >
88
88
}
89
89
text : Partial < React . CSSProperties >
90
+ ticks : {
91
+ line : Partial < React . CSSProperties >
92
+ text : Partial < React . CSSProperties >
93
+ }
94
+ title : {
95
+ text : Partial < React . CSSProperties >
96
+ }
90
97
}
91
98
labels : {
92
99
text : Partial < React . CSSProperties >
@@ -165,6 +172,13 @@ declare module '@nivo/core' {
165
172
text : CompleteTheme [ 'legends' ] [ 'hidden' ] [ 'text' ]
166
173
} >
167
174
text : Partial < CompleteTheme [ 'legends' ] [ 'text' ] >
175
+ ticks : Partial < {
176
+ line : Partial < CompleteTheme [ 'legends' ] [ 'ticks' ] [ 'line' ] >
177
+ text : Partial < CompleteTheme [ 'legends' ] [ 'ticks' ] [ 'text' ] >
178
+ } >
179
+ title : Partial < {
180
+ text : Partial < CompleteTheme [ 'legends' ] [ 'title' ] [ 'text' ] >
181
+ } >
168
182
} >
169
183
labels : Partial < {
170
184
text : Partial < CompleteTheme [ 'labels' ] [ 'text' ] >
Original file line number Diff line number Diff line change @@ -49,6 +49,18 @@ export const defaultTheme = {
49
49
} ,
50
50
} ,
51
51
text : { } ,
52
+ ticks : {
53
+ line : {
54
+ stroke : '#777777' ,
55
+ strokeWidth : 1 ,
56
+ } ,
57
+ text : {
58
+ fontSize : 10 ,
59
+ } ,
60
+ } ,
61
+ title : {
62
+ text : { } ,
63
+ } ,
52
64
} ,
53
65
labels : {
54
66
text : { } ,
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ const fontProps = [
14
14
'axis.ticks.text' ,
15
15
'axis.legend.text' ,
16
16
'legends.text' ,
17
+ 'legends.ticks.text' ,
18
+ 'legends.title.text' ,
17
19
'labels.text' ,
18
20
'dots.text' ,
19
21
'markers.text' ,
Original file line number Diff line number Diff line change @@ -79,6 +79,23 @@ const lightTheme: DefaultTheme = {
79
79
text : {
80
80
fontSize : 12 ,
81
81
} ,
82
+ ticks : {
83
+ line : {
84
+ strokeWidth : 1 ,
85
+ stroke : '#637079' ,
86
+ } ,
87
+ text : {
88
+ fill : '#6a7c89' ,
89
+ fontSize : 10 ,
90
+ } ,
91
+ } ,
92
+ title : {
93
+ text : {
94
+ fill : '#6f6f6f' ,
95
+ fontSize : 10 ,
96
+ fontWeight : 800 ,
97
+ } ,
98
+ } ,
82
99
} ,
83
100
tooltip : {
84
101
container : {
@@ -198,6 +215,23 @@ const darkTheme: DefaultTheme = {
198
215
fontSize : 12 ,
199
216
fill : '#8d9cab' ,
200
217
} ,
218
+ ticks : {
219
+ line : {
220
+ strokeWidth : 1 ,
221
+ stroke : '#c8d4e0' ,
222
+ } ,
223
+ text : {
224
+ fill : '#8d9cab' ,
225
+ fontSize : 10 ,
226
+ } ,
227
+ } ,
228
+ title : {
229
+ text : {
230
+ fill : '#ccd7e2' ,
231
+ fontSize : 10 ,
232
+ fontWeight : 800 ,
233
+ } ,
234
+ } ,
201
235
} ,
202
236
tooltip : {
203
237
container : {
You can’t perform that action at this time.
0 commit comments