mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Add examples for multi-series
This commit is contained in:
12
Examples/Charts/MultiSeries.ps1
Normal file
12
Examples/Charts/MultiSeries.ps1
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
rm temp.xlsx -ErrorAction Ignore
|
||||||
|
|
||||||
|
$data = invoke-sum (ps) company handles,pm,VirtualMemorySize
|
||||||
|
|
||||||
|
$c = New-ExcelChart -Title Stats `
|
||||||
|
-ChartType LineMarkersStacked `
|
||||||
|
-Header "Stuff" `
|
||||||
|
-XRange "Processes[Company]" `
|
||||||
|
-YRange "Processes[PM]","Processes[VirtualMemorySize]"
|
||||||
|
|
||||||
|
$data |
|
||||||
|
Export-Excel temp.xlsx -AutoSize -TableName Processes -Show -ExcelChartDefinition $c
|
||||||
15
Examples/Charts/MultiSeries1.ps1
Normal file
15
Examples/Charts/MultiSeries1.ps1
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
rm temp.xlsx -ErrorAction Ignore
|
||||||
|
|
||||||
|
$data = @"
|
||||||
|
A,B,C,Date
|
||||||
|
2,1,1,2016-03-29
|
||||||
|
5,10,1,2016-03-29
|
||||||
|
"@ | ConvertFrom-Csv
|
||||||
|
|
||||||
|
$c = New-ExcelChart -Title Impressions `
|
||||||
|
-ChartType Line -Header "Something" `
|
||||||
|
-XRange "Impressions[Date]" `
|
||||||
|
-YRange @("Impressions[B]","Impressions[A]")
|
||||||
|
|
||||||
|
$data |
|
||||||
|
Export-Excel temp.xlsx -AutoSize -TableName Impressions -Show -ExcelChartDefinition $c
|
||||||
Reference in New Issue
Block a user