Skip to content

Commit

Permalink
Allow transparent background color
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBernskiold committed Nov 12, 2024
1 parent 639da4c commit 4f2e36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/ChartShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function render(): static
$this->axisColor = $this->slide->chartAxisColor;
}

if (! empty($this->backgroundColor)) {
if (! empty($this->backgroundColor) && $this->backgroundColor !== 'transparent') {
$this->shape->getFill()
->setFillType(Fill::FILL_SOLID)
->setStartColor(new Color($this->backgroundColor));
Expand Down

0 comments on commit 4f2e36d

Please sign in to comment.