UniversalDashboard.Community/poshud/pages/charts/nivo-heatmap.ps1

New-ComponentPage -Title 'Nivo Heatmap' -Description 'Creates a heatmap' -Content {
    New-Example -Title 'Heatmap' -Description '' -Example {
        $Data = @(
            @{
                state = "idaho"
                cats = 72307
                dogs = 23429
                moose = 23423
                bears = 784
            }
            @{
                state = "wisconsin"
                cats = 2343342
                dogs = 3453623
                moose = 1
                bears = 23423
            }
            @{
                state = "montana"
                cats = 9234
                dogs = 3973457
                moose = 23472
                bears = 347303
            }
            @{
                state = "colorado"
                cats = 345973789
                dogs = 0237234
                moose = 2302
                bears = 2349772
            }
        )
        New-UDNivoChart -Heatmap -Data $Data -IndexBy 'state' -keys @('cats', 'dogs', 'moose', 'bears')  -Height 500 -Width 1000 -MarginTop 50 -MarginRight 130 -MarginBottom 50 -MarginLeft 60
    }
} -Cmdlet @("New-UDNivoChart") -Enterprise