Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Oct 15, 2024
2 parents 2d23049 + 387a4bf commit 483c471
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/charts/common/bar/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
Expand Down
3 changes: 3 additions & 0 deletions src/modules/Fill.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 483c471

Please sign in to comment.