Skip to content

Commit

Permalink
Fix setting of Dial background (#7261)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 12, 2024
1 parent 3c966d4 commit a9162e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions panel/widgets/indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,11 @@ def _get_model(self, doc, root=None, parent=None, comm=None):
model.xaxis.visible = False
model.yaxis.visible = False
model.grid.visible = False
if self.background in (None, "transparent"):
model.background_fill_alpha = 0
else:
model.background_fill_alpha = 1
model.background_fill_color = self.background

annulus, needle, threshold, text = self._get_data(properties)

Expand Down

0 comments on commit a9162e1

Please sign in to comment.