Skip to content

Commit

Permalink
fix shadow for funnel chart
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Nov 8, 2024
1 parent 14b2c7c commit 1b6ca59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/charts/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ class Bar {
currPaths: paths,
})

if (barShadow) {
elBarShadows.add(barShadow)
elBarShadows.add(barShadow)

if (w.config.chart.dropShadow.enabled) {
const filters = new Filters(this.ctx)
filters.dropShadow(barShadow, w.config.chart.dropShadow, realIndex)
}
Expand Down
2 changes: 1 addition & 1 deletion src/charts/common/bar/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ export default class Helpers {
stroke: 'none',
strokeWidth: 0,
fillOpacity: 1,
classes: 'apexcharts-bar-shadow',
classes: 'apexcharts-bar-shadow apexcharts-decoration-element',
})
}

Expand Down
9 changes: 5 additions & 4 deletions src/modules/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ class Graphics {
}

if (w.config.chart.dropShadow.enabled && drawShadow) {
const shadow = w.config.chart.dropShadow
filters.dropShadow(el, shadow, realIndex)
filters.dropShadow(el, w.config.chart.dropShadow, realIndex)
}

if (bindEventsOnPaths) {
Expand Down Expand Up @@ -940,9 +939,11 @@ class Graphics {
w.globals.selectedDataPoints.length > 0
) {
w.globals.selectedDataPoints = []
const elPaths = w.globals.dom.Paper.find('.apexcharts-series path')
const elPaths = w.globals.dom.Paper.find(
'.apexcharts-series path:not(.apexcharts-decoration-element)'
)
const elCircles = w.globals.dom.Paper.find(
'.apexcharts-series circle, .apexcharts-series rect'
'.apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)'
)

const deSelect = (els) => {
Expand Down

0 comments on commit 1b6ca59

Please sign in to comment.