You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [X] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
Colors specified for bar chart work like they do for donut chart
<?phprequire__DIR__ . '/vendor/autoload.php';
// Create new Spreadsheet object$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
// add code that show the issue here...$colors = [ '00ff00', 'cfcfcf', '007f00' ];
$dataSeriesValues1 = [
newDataSeriesValues(DataSeriesValues::DATASERIES_TYPE_NUMBER, 'Worksheet!$Z$1:$Z$2', null, 2, [], null, $colors),
];
// Then do the rest to create the DataSeries and then the Chart.// with DataSeries::TYPE_DONUTCHART the chart colors match what is sent.// with DataSeries::TYPE_BARCHART the chart colors are always the style colors.
Which versions of PhpSpreadsheet and PHP are affected?
php 7.2, current PhpSpreadsheet
The text was updated successfully, but these errors were encountered:
This is:
What is the expected behavior?
Colors specified for bar chart work like they do for donut chart
What is the current behavior?
Default style colors show
What are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
php 7.2, current PhpSpreadsheet
The text was updated successfully, but these errors were encountered: