mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-08 04:46:26 +00:00
Add setName Method for Chart (#3001)
Addresses a problem identified in issue #2991. Chart name is set in constructor, but there is no method to subsequently change it. This PR adds a method to do so.
This commit is contained in:
@@ -93,8 +93,9 @@ class ChartMethodTest extends TestCase
|
||||
$xAxis, // xAxis
|
||||
$yAxis // yAxis
|
||||
);
|
||||
$chart2 = new Chart('chart1');
|
||||
$chart2 = new Chart('xyz');
|
||||
$chart2
|
||||
->setName('chart1')
|
||||
->setLegend($legend)
|
||||
->setPlotArea($plotArea)
|
||||
->setPlotVisibleOnly(true)
|
||||
|
||||
Reference in New Issue
Block a user