Charts and PowerShell !! PowerShell Wrapper “Full Edition”

I think one of the most interesting things when writing PowerShell scripts, is to make the results appear in a nice chart or couple of them. If you are going to show disk space info, nothing more than a nice chart will worth looking at. If you are sending a report to your management, nothing will take their attention more than charts. I love getting charts as  a high level output, with more tables and data for extra details.

Moving to a New Blog Platform

This post is now moved to my new blog platform at https://blog.ahasayen.com. To continue reading this blog post, please click here

https://blog.ahasayen.com/most-amazing-exchange-email-report/

9 comments on “Charts and PowerShell !! PowerShell Wrapper “Full Edition”

  1. Pingback: Charts and PowerShell !! PowerShell Wrapper “Light Edition” | Ammar Hasayen - Blog

  2. Gr8 effort here… im using this script to produce many internal charts for my infrastructure. Love it

  3. Great Script, i am using your old script, and need your advise to link your script with the sql database.

  4. HI
    Great solution!!
    question:
    I want to create a StackedColumn100. so I have an array with 3 columns (day,Up,Down) ,
    I have set -obj_key “day” -obj_value “Up” as a StackedColumn , and works fine
    but how do I specify the parameters to do a StackedColumn100 having the column composed by “Up ” and “down”

    thanks

  5. Good afternoon!

    When I run the script, as examples, nothing happens. It is not displayed error or generated graphic file.

    OS: Windows 10
    .Net3.5: Ok
    MSChart.exe: Ok

    Need help.

      • Não é possível localizar o tipo [system.drawing.fontstyle].
        No C:\Get-Corpchart-LightEdition.ps1:222 caractere:127
        + … ect system.drawing.font(“ARIAL”,18,[system.drawing.fontstyle]::bold)) …
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : InvalidOperation: (system.drawing.fontstyle:TypeName) [], RuntimeException
        + FullyQualifiedErrorId : TypeNotFound

        Não é possível localizar o tipo [system.drawing.fontstyle].
        No C:\Get-Corpchart-LightEdition.ps1:224 caractere:129
        + … t system.drawing.font(“calibri”,16,[system.drawing.fontstyle]::italic …
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : InvalidOperation: (system.drawing.fontstyle:TypeName) [], RuntimeException
        + FullyQualifiedErrorId : TypeNotFound

        Failed to save chart at c:\chart.png
        No C:\Get-Corpchart-LightEdition.ps1:592 caractere:29
        + Throw “Failed to save chart at $filepath”
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : OperationStopped: (Failed to save chart at c:\chart.png:String) [], RuntimeException
        + FullyQualifiedErrorId : Failed to save chart at c:\chart.png

  6. PS C:\> $cities = @{London=7556900; Berlin=3429900; Madrid=3213271; Rome=2726539;Paris=2188500}
    PS C:\> .\Get-Corpchart-LightEdition -data $cities -obj_key “Name” -obj_value “Population” -filepath “c:\chart.png” -type pie

    PS: Removing the parameters:

    222, [system.drawing.fontstyle] :: bold
    224, [system.drawing.fontstyle] :: italic

    a png file blank is generated.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s