Dashboard 2.2.0 & Nivo Charts

Hello Folks,

I just have installed the version 2.2.0 of the module, willing to reconfigure all my charts to NivoChart pie charts, but I’m constantly having errors regarding the fact that New-UDNivoChart is not recognized.

Is that normal or have I done something wrong in my update process of the module?

Many thanks in advance for your feedbacks !

Cheers

Nivo charts only available in Enterprise Edition.

what edition do you use ?

well I bought a license so I guess I have a Enterprise Edition. I did a Set-UDLicense and all.

Should I do something else to enjoy Nivo chart or to set my Dashboard to Enterprise ?

After u import ud enterprise module and u run gcm -m universaldashboard.enterprise
Do u see nivo chart?

Nothing shows up. I did Install-Module UniversalDashboard.Enterprise and nothing more :frowning:

Install-Module UniversalDashboard -AcceptLicense
run this

after that you will see the command
https://www.powershellgallery.com/packages/UniversalDashboard/2.2.0/Content/UniversalDashboard.psd1

my bad enterprise is empty the regular UniversalDashboard is the pay version

well, still no UDNivo chart available. I don’t really get it tbh

After u import the module can u run get-module and upload the image ?

Script 2.2.0 UniversalDashboard {Add-UDElement, Clear-UDElement, ConvertTo-JsonEx, Disable-UDLogging…}

New-UDNivo … are not imported

the version of the module is 2.2.0 tho .

that’s really weird tbh

Please post the output of:

Get-Content 'C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.2.0\UniversalDashboard.psd1'
#and
Import-Module -Name UniversalDashboard -Verbose
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Out-UDChartData', 'Out-UDGridData', 'Out-UDTableData',
               'New-UDChartDataset', 'Out-UDMonitorData', 'Get-UDCookie',
               'Set-UDCookie', 'Remove-UDCookie', 'New-UDPolarChartDataset',
               'New-UDDoughnutChartDataset', 'New-UDRadarChartDataset',
               'New-UDBarChartDataset', 'New-UDLineChartDataset',
               'New-UDChartOptions', 'New-UDLogarithmicChartAxis',
               'New-UDCategoryChartAxis', 'New-UDLinearChartAxis',
               'New-UDPolarChartOptions', 'New-UDDoughnutChartOptions',
               'New-UDBarChartOptions', 'New-UDLineChartOptions',
               'New-UDChartTooltipOptions', 'New-UDChartTitleOptions',
               'New-UDChartLegendLabelOptions', 'New-UDChartLegendOptions',
               'New-UDChartLayoutOptions', 'Set-UDContentType', 'Get-UDContentType',
               'Update-UDDashboard', 'New-UDTable', 'New-UDRow', 'New-UDColumn',
               'New-UDCard', 'New-UDCollapsible', 'New-UDCollapsibleItem',
               'New-UDLayout', 'New-UDParagraph', 'New-UDHeading', 'New-UDIFrame',
               'New-UDIcon', 'New-UDPreloader', 'New-UDSelect', 'New-UDSelectOption',
               'New-UDSelectGroup', 'New-UDCollection', 'New-UDCollectionItem',
               'New-UDSpan', 'New-UDCheckbox', 'Write-UDLog', 'New-UDButton',
               'New-UDSwitch', 'New-UDRadio', 'New-UDTextbox', 'Publish-UDDashboard',
               'New-UDImage', 'New-UDFab', 'New-UDFabButton'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = 'New-UDNivoChart', 'New-UDNivoChartAxisOptions', 'New-UDNivoPattern',
               'New-UDNivoFill', 'New-UDAuthenticationMethod',
               'New-UDAuthenticationResult', 'New-UDLoginPage',
               'New-UDLoadingScreen', 'Set-UDLicense', 'Get-UDLicense', 'New-UDChart',
               'New-UDDashboard', 'Get-UDDashboard', 'New-UDGrid', 'Start-UDDashboard',
               'Stop-UDDashboard', 'New-UDMonitor', 'New-UDLink', 'New-UDHtml',
               'New-UDCounter', 'New-UDPage', 'Enable-UDLogging', 'Disable-UDLogging',
               'New-UDInput', 'New-UDInputAction', 'New-UDEndpoint', 'Start-UDRestApi',
               'Stop-UDRestApi', 'Get-UDRestApi', 'New-UDInputField', 'New-UDFooter',
               'New-UDElement', 'New-UDTheme', 'Get-UDTheme', 'Add-UDElement',
               'Set-UDElement', 'Remove-UDElement', 'Clear-UDElement', 'Get-UDElement',
               'New-UDEndpointSchedule', 'Show-UDToast', 'Sync-UDElement',
               'ConvertTo-JsonEx', 'Invoke-UDRedirect', 'Show-UDModal', 'Hide-UDModal',
               'Hide-UDToast', 'Publish-UDFolder', 'New-UDTreeNode', 'New-UDTreeView',
               'Grant-UDJsonWebToken', 'New-UDImageCarousel',
               'New-UDImageCarouselItem', 'New-UDEndpointInitialization',
               'New-UDAuthorizationPolicy'

&

VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.2.0\UniversalDashboard.psd1'.
VERBOSE: Importing cmdlet 'Add-UDElement'.
VERBOSE: Importing cmdlet 'Clear-UDElement'.
VERBOSE: Importing cmdlet 'ConvertTo-JsonEx'.
VERBOSE: Importing cmdlet 'Disable-UDLogging'.
VERBOSE: Importing cmdlet 'Enable-UDLogging'.
VERBOSE: Importing cmdlet 'Get-UDDashboard'.
VERBOSE: Importing cmdlet 'Get-UDElement'.
VERBOSE: Importing cmdlet 'Get-UDLicense'.
VERBOSE: Importing cmdlet 'Get-UDRestApi'.
VERBOSE: Importing cmdlet 'Get-UDTheme'.
VERBOSE: Importing cmdlet 'Grant-UDJsonWebToken'.
VERBOSE: Importing cmdlet 'Hide-UDModal'.
VERBOSE: Importing cmdlet 'Hide-UDToast'.
VERBOSE: Importing cmdlet 'Invoke-UDRedirect'.
VERBOSE: Importing cmdlet 'New-UDAuthenticationMethod'.
VERBOSE: Importing cmdlet 'New-UDAuthenticationResult'.
VERBOSE: Importing cmdlet 'New-UDAuthorizationPolicy'.
VERBOSE: Importing cmdlet 'New-UDChart'.
VERBOSE: Importing cmdlet 'New-UDCounter'.
VERBOSE: Importing cmdlet 'New-UDDashboard'.
VERBOSE: Importing cmdlet 'New-UDElement'.
VERBOSE: Importing cmdlet 'New-UDEndpoint'.
VERBOSE: Importing cmdlet 'New-UDEndpointInitialization'.
VERBOSE: Importing cmdlet 'New-UDEndpointSchedule'.
VERBOSE: Importing cmdlet 'New-UDFooter'.
VERBOSE: Importing cmdlet 'New-UDGrid'.
VERBOSE: Importing cmdlet 'New-UDHtml'.
VERBOSE: Importing cmdlet 'New-UDImageCarousel'.
VERBOSE: Importing cmdlet 'New-UDImageCarouselItem'.
VERBOSE: Importing cmdlet 'New-UDInput'.
VERBOSE: Importing cmdlet 'New-UDInputAction'.
VERBOSE: Importing cmdlet 'New-UDInputField'.
VERBOSE: Importing cmdlet 'New-UDLink'.
VERBOSE: Importing cmdlet 'New-UDLoadingScreen'.
VERBOSE: Importing cmdlet 'New-UDLoginPage'.
VERBOSE: Importing cmdlet 'New-UDMonitor'.
VERBOSE: Importing cmdlet 'New-UDPage'.
VERBOSE: Importing cmdlet 'New-UDTheme'.
VERBOSE: Importing cmdlet 'New-UDTreeNode'.
VERBOSE: Importing cmdlet 'New-UDTreeView'.
VERBOSE: Importing cmdlet 'Publish-UDFolder'.
VERBOSE: Importing cmdlet 'Remove-UDElement'.
VERBOSE: Importing cmdlet 'Set-UDElement'.
VERBOSE: Importing cmdlet 'Set-UDLicense'.
VERBOSE: Importing cmdlet 'Show-UDModal'.
VERBOSE: Importing cmdlet 'Show-UDToast'.
VERBOSE: Importing cmdlet 'Start-UDDashboard'.
VERBOSE: Importing cmdlet 'Start-UDRestApi'.
VERBOSE: Importing cmdlet 'Stop-UDDashboard'.
VERBOSE: Importing cmdlet 'Stop-UDRestApi'.
VERBOSE: Importing cmdlet 'Sync-UDElement'.
VERBOSE: Importing function 'Get-UDContentType'.
VERBOSE: Importing function 'Get-UDCookie'.
VERBOSE: Importing function 'New-UDBarChartDataset'.
VERBOSE: Importing function 'New-UDBarChartOptions'.
VERBOSE: Importing function 'New-UDButton'.
VERBOSE: Importing function 'New-UDCard'.
VERBOSE: Importing function 'New-UDCategoryChartAxis'.
VERBOSE: Importing function 'New-UDChartDataset'.
VERBOSE: Importing function 'New-UDChartLayoutOptions'.
VERBOSE: Importing function 'New-UDChartLegendOptions'.
VERBOSE: Importing function 'New-UDChartOptions'.
VERBOSE: Importing function 'New-UDChartTitleOptions'.
VERBOSE: Importing function 'New-UDChartTooltipOptions'.
VERBOSE: Importing function 'New-UDCheckbox'.
VERBOSE: Importing function 'New-UDCollapsible'.
VERBOSE: Importing function 'New-UDCollapsibleItem'.
VERBOSE: Importing function 'New-UDCollection'.
VERBOSE: Importing function 'New-UDCollectionItem'.
VERBOSE: Importing function 'New-UDColumn'.
VERBOSE: Importing function 'New-UDDoughnutChartDataset'.
VERBOSE: Importing function 'New-UDDoughnutChartOptions'.
VERBOSE: Importing function 'New-UDFab'.
VERBOSE: Importing function 'New-UDFabButton'.
VERBOSE: Importing function 'New-UDHeading'.
VERBOSE: Importing function 'New-UDIcon'.
VERBOSE: Importing function 'New-UDIFrame'.
VERBOSE: Importing function 'New-UDImage'.
VERBOSE: Importing function 'New-UDLayout'.
VERBOSE: Importing function 'New-UDLinearChartAxis'.
VERBOSE: Importing function 'New-UDLineChartDataset'.
VERBOSE: Importing function 'New-UDLineChartOptions'.
VERBOSE: Importing function 'New-UDLogarithmicChartAxis'.
VERBOSE: Importing function 'New-UDParagraph'.
VERBOSE: Importing function 'New-UDPolarChartDataset'.
VERBOSE: Importing function 'New-UDPolarChartOptions'.
VERBOSE: Importing function 'New-UDPreloader'.
VERBOSE: Importing function 'New-UDRadarChartDataset'.
VERBOSE: Importing function 'New-UDRadio'.
VERBOSE: Importing function 'New-UDRow'.
VERBOSE: Importing function 'New-UDSelect'.
VERBOSE: Importing function 'New-UDSelectGroup'.
VERBOSE: Importing function 'New-UDSelectOption'.
VERBOSE: Importing function 'New-UDSpan'.
VERBOSE: Importing function 'New-UDSwitch'.
VERBOSE: Importing function 'New-UDTable'.
VERBOSE: Importing function 'New-UDTextbox'.
VERBOSE: Importing function 'Out-UDChartData'.
VERBOSE: Importing function 'Out-UDGridData'.
VERBOSE: Importing function 'Out-UDMonitorData'.
VERBOSE: Importing function 'Out-UDTableData'.
VERBOSE: Importing function 'Publish-UDDashboard'.
VERBOSE: Importing function 'Remove-UDCookie'.
VERBOSE: Importing function 'Set-UDContentType'.
VERBOSE: Importing function 'Set-UDCookie'.
VERBOSE: Importing function 'Update-UDDashboard'.
VERBOSE: Importing function 'Write-UDLog'.

So the new cmdlets are present in the module, but the module don’t load them.

Are you using PS Core or Windows PowerShell? Can you please grab the DLL from these locations and upload them here (if it lets you do that)?

C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.2.0\net472\UniversalDashboard.dll
C:\Program Files\WindowsPowerShell\Modules\UniversalDashboard\2.2.0\netstandard2.0\UniversalDashboard.dll

Hello Adam,

I finally got it to work by restarting the powershell session…

BTW I have a question about data formating in order to feed the nivo chart with data, I tried using a pscustomobject and it didn’t worked, I did try as well to convert the object to json as stated from nivo web site but didn’t work either, the only way I managed to show a chart was by manually creating the data using your example. Is there a way to build this array(?) dynamically?

Edit: I simply removed [pscustomobject] and it worked. So I guess I found a way :smiley:

BTW, wouldn’t be easier to simply use the JSON format to pass data to the nivo API ? like $myobject | ConvertTo-Json ?

Edit 2: it seems like the innerRadius value is not taken into account for nivo pie chart ? can you take a look at this ?

Thanks a lot in advance !

Cheers

I was trying to make it easier but in actually made it harder by attempting to serialize to JSON automatically :wink:

I’ll add support for JSON strings so you have control over the serialization of the data. https://github.com/ironmansoftware/universal-dashboard/issues/525

I also added an issue for the innerRadius: https://github.com/ironmansoftware/universal-dashboard/issues/524

1 Like

You’re awesome ! :slight_smile:

Thx a lot !!

Cheers !