-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More Display Options for Chart Axis and Legend (#3434)
* Allow Color and Effects on Data Points on Chart Axis Fix #3414. There had been no way to do this. It is now supported via a new AxisText class, which derives from Properties, and has FillColor and effects (glow/shadow/softEdges) properties. The code changes in chart sample 33_Chart_create_scatter2 illustrate usage. * Minor Performance Improvement May also get rid of Scrutinizer complaint. * Eliminate New Spacing Patch No need for it. * Add Legend Formatting to Change Much in common with Data Point formatting.
- Loading branch information
Showing
9 changed files
with
617 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace PhpOffice\PhpSpreadsheet\Chart; | ||
|
||
class AxisText extends Properties | ||
{ | ||
/** @var ?int */ | ||
private $rotation; | ||
|
||
/** @var ChartColor */ | ||
private $fillColor; | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$this->fillColor = new ChartColor(); | ||
} | ||
|
||
public function setRotation(?int $rotation): self | ||
{ | ||
$this->rotation = $rotation; | ||
|
||
return $this; | ||
} | ||
|
||
public function getRotation(): ?int | ||
{ | ||
return $this->rotation; | ||
} | ||
|
||
public function getFillColorObject(): ChartColor | ||
{ | ||
return $this->fillColor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.