mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-31 23:53:19 +00:00
Merge pull request #83 from redoz/issue-82
Fix for #82: multiple series aren't supported in a single chart.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user