File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,10 @@ export default class Core {
96
96
} )
97
97
98
98
gl . dom . Paper . node . style . background =
99
- cnf . theme . mode === 'dark' && ! cnf . chart . background
100
- ? 'rgba(0, 0, 0, 0.8)'
99
+ cnf . theme . mode === 'dark' && ! cnf . chart . background
100
+ ? '#424242'
101
+ : cnf . theme . mode === 'light' && ! cnf . chart . background
102
+ ? '#fff'
101
103
: cnf . chart . background
102
104
103
105
this . setSVGDimensions ( )
Original file line number Diff line number Diff line change @@ -179,11 +179,6 @@ export default class Theme {
179
179
options . chart = options . chart || { }
180
180
options . tooltip = options . tooltip || { }
181
181
const mode = options . theme . mode
182
- const background = mode === 'dark'
183
- ? '#424242'
184
- : mode === 'light'
185
- ? '#fff'
186
- : options . chart . background || '#fff'
187
182
const palette = mode === 'dark'
188
183
? 'palette4'
189
184
: mode === 'light'
@@ -197,7 +192,6 @@ export default class Theme {
197
192
198
193
options . tooltip . theme = mode || 'light'
199
194
options . chart . foreColor = foreColor
200
- options . chart . background = background
201
195
options . theme . palette = palette
202
196
203
197
return options
Original file line number Diff line number Diff line change @@ -277,10 +277,6 @@ export default class Config {
277
277
opts . chart . foreColor = '#f6f7f8'
278
278
}
279
279
280
- if ( ! opts . chart . background ) {
281
- opts . chart . background = '#424242'
282
- }
283
-
284
280
if ( ! opts . theme . palette ) {
285
281
opts . theme . palette = 'palette4'
286
282
}
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ export default class Options {
270
270
speed : 350 ,
271
271
} ,
272
272
} ,
273
- background : 'transparent ' ,
273
+ background : '' ,
274
274
locales : [ en ] ,
275
275
defaultLocale : 'en' ,
276
276
dropShadow : {
@@ -1115,7 +1115,7 @@ export default class Options {
1115
1115
} ,
1116
1116
yaxis : this . yAxis ,
1117
1117
theme : {
1118
- mode : 'light ' ,
1118
+ mode : '' ,
1119
1119
palette : 'palette1' , // If defined, it will overwrite globals.colors variable
1120
1120
monochrome : {
1121
1121
// monochrome allows you to select just 1 color and fill out the rest with light/dark shade (intensity can be selected)
You can’t perform that action at this time.
0 commit comments