Skip to content

How to add a Chart correctly? #1635

Closed Answered by monoeagle
monoeagle asked this question in Q&A
Discussion options

You must be logged in to vote

Multiple Columns works as well. ;)

$c = New-ExcelChartDefinition -Title "Status"
-ChartType ColumnClustered -XRange "Processes[Name]"
-YRange "Processes[Status_Active]","Processes[Status_Cancelled]" `
-SeriesHeader "Status_Active","Status_Cancelled"

$c1 = New-ExcelChartDefinition -Title "Aktionen" -ChartType ColumnClustered
-XRange "Processes[Name]" -YRange "Processes[Action_Ordered]","Processes[Action_Modified]","Processes[Action_Cancelled]","Processes[Action_Failure]","Processes[Action_Empty]"
-SeriesHeader "Action_Ordered","Action_Modified","Action_Cancelled","Action_Failure","Action_Empty"

$data | Export-Excel -Path $xlSourcefile -AutoSize -TableName Processes -ExcelChartDefinition $c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dfinke
Comment options

Answer selected by monoeagle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants