Fix for issue where multiple series aren't supported in a single chart.

This commit is contained in:
Patrik
2016-03-30 22:37:27 +02:00
parent 9e3edc129a
commit c2b2860814

View File

@@ -356,7 +356,7 @@ function Export-Excel {
$chart.SetPosition($chartDef.Row, $chartDef.RowOffsetPixels,$chartDef.Column, $chartDef.ColumnOffsetPixels)
$chart.SetSize($chartDef.Width, $chartDef.Height)
$chartDefCount = @($chartDef.XRange).Count
$chartDefCount = @($chartDef.YRange).Count
if($chartDefCount -eq 1) {
$Series=$chart.Series.Add($chartDef.YRange, $chartDef.XRange)
$Series.Header = $chartDef.Header