File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ rect.legend-mouseover-inactive,
170
170
text-rendering : optimizeLegibility;
171
171
-webkit-font-smoothing : antialiased;
172
172
font-size : 26px ;
173
+ font-family : Arial, Helvetica, sans-serif;
173
174
line-height : 14px ;
174
175
font-weight : 900 ;
175
176
}
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ export default class Labels {
268
268
ttItemsChildren = ttItems [ t ] . children
269
269
270
270
if ( w . config . tooltip . fillSeriesColor ) {
271
- ttItems [ t ] . style . color = pColor
271
+ ttItems [ t ] . style . backgroundColor = pColor
272
272
ttItemsChildren [ 0 ] . style . display = 'none'
273
273
}
274
274
@@ -309,7 +309,11 @@ export default class Labels {
309
309
pColor = w . config . tooltip . marker . fillColors [ t ]
310
310
}
311
311
312
- ttItemsChildren [ 0 ] . style . color = pColor
312
+ if ( w . config . tooltip . fillSeriesColor ) {
313
+ ttItemsChildren [ 0 ] . style . backgroundColor = pColor
314
+ } else {
315
+ ttItemsChildren [ 0 ] . style . color = pColor
316
+ }
313
317
}
314
318
315
319
if ( ! w . config . tooltip . marker . show ) {
Original file line number Diff line number Diff line change @@ -147,7 +147,12 @@ export default class Tooltip {
147
147
148
148
let point = document . createElement ( 'span' )
149
149
point . classList . add ( 'apexcharts-tooltip-marker' )
150
- point . style . color = w . globals . colors [ i ]
150
+
151
+ if ( w . config . tooltip . fillSeriesColor ) {
152
+ point . style . backgroundColor = w . globals . colors [ i ]
153
+ } else {
154
+ point . style . color = w . globals . colors [ i ]
155
+ }
151
156
152
157
let mShape = w . config . markers . shape
153
158
let shape = mShape
You can’t perform that action at this time.
0 commit comments