Skip to content

Commit 989fc3e

Browse files
Support defining axis color on slide
1 parent 8399e4f commit 989fc3e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Components/ChartShape.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ public function render(): static
7575
$this->backgroundColor = $this->slide->chartBackgroundColor;
7676
}
7777

78+
if($this->slide->chartAxisColor) {
79+
$this->axisColor = $this->slide->chartAxisColor;
80+
}
81+
7882
if (! empty($this->backgroundColor)) {
7983
$this->shape->getFill()
8084
->setFillType(Fill::FILL_SOLID)

src/Concerns/Slides/WithChartBackground.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ trait WithChartBackground
66
{
77
public ?string $chartBackgroundColor = null;
88

9+
public ?string $chartAxisColor = null;
10+
911
public function chartBackgroundColor(?string $argb): static
1012
{
1113
$this->chartBackgroundColor = $argb;
1214

1315
return $this;
1416
}
17+
18+
public function chartAxisColor(?string $argb): static
19+
{
20+
$this->chartAxisColor = $argb;
21+
22+
return $this;
23+
}
1524
}

0 commit comments

Comments
 (0)