We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c070c29 commit a71cc82Copy full SHA for a71cc82
src/modules/DataLabels.js
@@ -373,7 +373,9 @@ class DataLabels {
373
}
374
if (elRect) {
375
el.parentNode.insertBefore(elRect.node, el)
376
- const background = w.config.dataLabels.background.backgroundColor
+ const background =
377
+ w.config.dataLabels.background.backgroundColor ||
378
+ el.getAttribute('fill')
379
380
const shouldAnim =
381
w.config.chart.animations.enabled &&
src/modules/settings/Options.js
@@ -725,7 +725,7 @@ export default class Options {
725
background: {
726
enabled: true,
727
foreColor: '#fff',
728
- backgroundColor: '#323232',
+ backgroundColor: undefined,
729
borderRadius: 2,
730
padding: 4,
731
opacity: 0.9,
0 commit comments