Added ShowPercent, ShowCategory, NoLegend

This commit is contained in:
dfinke
2015-12-26 14:50:57 -05:00
parent c17a272f1e
commit 0cee3a5576
3 changed files with 81 additions and 22 deletions

View File

@@ -10,7 +10,10 @@ function New-ExcelChart {
$Row=0,
$RowOffSetPixels=10,
$Column=6,
$ColumnOffSetPixels=5
$ColumnOffSetPixels=5,
[Switch]$NoLegend,
[Switch]$ShowCategory,
[Switch]$ShowPercent
)
[PSCustomObject]@{
@@ -21,10 +24,12 @@ function New-ExcelChart {
YRange=$YRange
Width=$Width
Height=$Height
Row=$Row
RowOffSetPixels=$RowOffSetPixels
Column=$Column
ColumnOffSetPixels=$ColumnOffSetPixels
}
NoLegend = if($NoLegend) {$true} else {$false}
ShowCategory = if($ShowCategory) {$true} else {$false}
ShowPercent = if($ShowPercent) {$true} else {$false}
}
}