From 6de0a1ae6ec6b9c07fd88089a4801b28f2dfa968 Mon Sep 17 00:00:00 2001 From: Ross Johnson <159597299+rosco54@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:50:40 +1100 Subject: [PATCH 1/2] Issue #4742: apply config opacity to RGB colors. --- src/modules/Fill.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/Fill.js b/src/modules/Fill.js index 4348eb8fc..d5c5f125a 100644 --- a/src/modules/Fill.js +++ b/src/modules/Fill.js @@ -150,6 +150,9 @@ class Fill { } else { if (fillColor.indexOf('rgba') > -1) { fillOpacity = Utils.getOpacityFromRGBA(fillColor) + } else { + // if rgb color, apply opacity + defaultColor = Utils.hexToRgba(Utils.rgb2hex(fillColor), fillOpacity) } } if (opts.opacity) fillOpacity = opts.opacity From 7100b8e0b06eb60ef8b617edf796d6fc7ec91e9e Mon Sep 17 00:00:00 2001 From: Ross Johnson <159597299+rosco54@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:13:49 +1100 Subject: [PATCH 2/2] Function createBorderRadiusArr() failed if no series are defined, eg when data series are expected to be loaded later via the update call. --- src/charts/common/bar/Helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/charts/common/bar/Helpers.js b/src/charts/common/bar/Helpers.js index e216c080d..193f77d15 100644 --- a/src/charts/common/bar/Helpers.js +++ b/src/charts/common/bar/Helpers.js @@ -251,7 +251,7 @@ export default class Helpers { w.config.plotOptions.bar.borderRadius <= 0 const numSeries = series.length - const numColumns = series[0].length + const numColumns = series[0]?.length | 0 const output = Array.from({ length: numSeries }, () => Array(numColumns).fill(alwaysApplyRadius ? 'top' : 'none') )