mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
Move to mixed case folders
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
# Examples
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Charts
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# Multiplecharts
|
||||
|
||||
## PowerShell
|
||||
|
||||
```text
|
||||
$xlFile = "$env:TEMP\ImportExcelExample.xlsx"
|
||||
Remove-Item $xlFile -ErrorAction Ignore
|
||||
|
||||
$data = ConvertFrom-Csv @"
|
||||
ID,Product,Quantity,Price,Total
|
||||
12001,Nails,37,3.99,147.63
|
||||
12002,Hammer,5,12.10,60.5
|
||||
12003,Saw,12,15.37,184.44
|
||||
12010,Drill,20,8,160
|
||||
12011,Crowbar,7,23.48,164.36
|
||||
"@
|
||||
|
||||
$chart1 = New-ExcelChartDefinition -YRange "Price" -XRange "Product" -Title "Item price" -NoLegend -Height 225
|
||||
$chart2 = New-ExcelChartDefinition -YRange "Total "-XRange "Product" -Title "Total sales" -NoLegend -Height 225 -Row 9 -Column 15
|
||||
$chart3 = New-ExcelChartDefinition -YRange "Quantity"-XRange "Product" -Title "Sales volume" -NoLegend -Height 225 -Row 15
|
||||
|
||||
$data | Export-Excel -Path $xlFile -AutoFilter -AutoNameRange -AutoSize -Show -ExcelChartDefinition $chart1,$chart2,$chart3
|
||||
```
|
||||
|
||||
## Result
|
||||
|
||||

|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Untitled
|
||||
|
||||
Reference in New Issue
Block a user