Skip to content

Commit a71cc82

Browse files
committed
dataLables.background.backgroundColor should be undefined by default
1 parent c070c29 commit a71cc82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/modules/DataLabels.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ class DataLabels {
373373
}
374374
if (elRect) {
375375
el.parentNode.insertBefore(elRect.node, el)
376-
const background = w.config.dataLabels.background.backgroundColor
376+
const background =
377+
w.config.dataLabels.background.backgroundColor ||
378+
el.getAttribute('fill')
377379

378380
const shouldAnim =
379381
w.config.chart.animations.enabled &&

src/modules/settings/Options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ export default class Options {
725725
background: {
726726
enabled: true,
727727
foreColor: '#fff',
728-
backgroundColor: '#323232',
728+
backgroundColor: undefined,
729729
borderRadius: 2,
730730
padding: 4,
731731
opacity: 0.9,

0 commit comments

Comments
 (0)