From 28dab9a626de9356a069e45427ad44af3fc96e61 Mon Sep 17 00:00:00 2001 From: dfinke Date: Mon, 18 Apr 2016 19:00:22 -0400 Subject: [PATCH] Updated --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/README.md b/README.md index f715afa..8e24daf 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,45 @@ iex (new-object System.Net.WebClient).DownloadString('https://raw.github.com/dfi # What's new +#### 4/18/2016 +Thanks to [Paul Williams](https://github.com/pauldalewilliams) for this feature. Now data can be transposed to columns for better charting. + +```powershell +$file = "C:\Temp\ps.xlsx" +rm $file -ErrorAction Ignore + +ps | + where company | + select Company,PagedMemorySize,PeakPagedMemorySize | + Export-Excel $file -Show -AutoSize ` + -IncludePivotTable ` + -IncludePivotChart ` + -ChartType ColumnClustered ` + -PivotRows Company ` + -PivotData @{PagedMemorySize='sum';PeakPagedMemorySize='sum'} +``` +![](https://raw.githubusercontent.com/dfinke/ImportExcel/master/images/PivotAsRows.png) + + +Add `-PivotDataToColumn` + +```powershell +$file = "C:\Temp\ps.xlsx" +rm $file -ErrorAction Ignore + +ps | + where company | + select Company,PagedMemorySize,PeakPagedMemorySize | + Export-Excel $file -Show -AutoSize ` + -IncludePivotTable ` + -IncludePivotChart ` + -ChartType ColumnClustered ` + -PivotRows Company ` + -PivotData @{PagedMemorySize='sum';PeakPagedMemorySize='sum'} ` + -PivotDataToColumn +``` +And here is the new chart view +![](https://raw.githubusercontent.com/dfinke/ImportExcel/master/images/PivotAsColumns.png) #### 4/7/2016 Made more methods fluent ```