mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-08 19:43:14 +00:00
Initial commit
This commit is contained in:
30
New-ExcelChart.ps1
Normal file
30
New-ExcelChart.ps1
Normal file
@@ -0,0 +1,30 @@
|
||||
function New-ExcelChart {
|
||||
param(
|
||||
$Title="Chart Title",
|
||||
$Header,
|
||||
[OfficeOpenXml.Drawing.Chart.eChartType]$ChartType="ColumnStacked",
|
||||
$XRange,
|
||||
$YRange,
|
||||
$Width=500,
|
||||
$Height=350,
|
||||
$Row=0,
|
||||
$RowOffSetPixels=10,
|
||||
$Column=6,
|
||||
$ColumnOffSetPixels=5
|
||||
)
|
||||
|
||||
[PSCustomObject]@{
|
||||
Title=$Title
|
||||
Header=$Header
|
||||
ChartType=$ChartType
|
||||
XRange=$XRange
|
||||
YRange=$YRange
|
||||
Width=$Width
|
||||
Height=$Height
|
||||
|
||||
Row=$Row
|
||||
RowOffSetPixels=$RowOffSetPixels
|
||||
Column=$Column
|
||||
ColumnOffSetPixels=$ColumnOffSetPixels
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user