Skip to content

Commit

Permalink
Fix default chart axis color
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBernskiold committed Nov 14, 2024
1 parent c1ef142 commit a3029fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/Charts/Scatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@ protected function initializeChart(): void

protected function chartTypeSeriesData(Series $series, int $index, array $seriesData): void
{
if ($this->slide->chartAxisColor) {
$axisColor = new Color($this->slide->chartAxisColor);
} else {
$axisColor = $this->slide->presentation->branding->chartColor($index);
}

$series->getFont()
->setName($this->slide->presentation->branding->baseFont())
->setColor(new Color($this->slide->chartAxisColor))
->setColor($axisColor)
->setBold(true);

$series->getMarker()->setSymbol(Marker::SYMBOL_CIRCLE);
Expand Down

0 comments on commit a3029fa

Please sign in to comment.