
UniversalDashboard.UDPieChart3D
Google 3D PieChart for UniversalDashboard
psdevuk
save_alt 390 downloads
New-UDPieChart3D
A new component for UniversalDashboard based on https://github.com/RakanNimer/react-google-charts
Parameters
Only a few parameter with this component 4 to be more on the ball they are as follows:-
- -Title this adds a title to the 3D PieChart
- -Height allows you to set the height string so 400px or 100% is valid
- -Width allows you to set the width string so 400px or 100% is valid
- -Data vital that you must construct your data as a 2 dementional array to be passed to the chart with a title
New Parameter in version 1.0.1
- -BackgroundColor Allows a string value to set the background-area colour of the chart component
New Parameters in version 1.0.2
- -ChartArea Now allows you to set via a string the percentage of the actual chart width and height defaulted to "70%"
- -TitleFontColor Allows you to set via a string the title font colour defaulted to "#000"
- -TitleFontSize Is a numeric value allowing you to adjust the font size this is defaulted to 25
- -LegendPosition A validated set 'top', 'bottom', 'left', 'right', 'none', 'labeled' defaulted to right
- -LegendFontSize Is a numeric value allowing you to adjust the font size this is defaulted to 16
- -LegendFontColor Allows you to set via a string the legend font colour defaulted to "#000"
Example
Import-Module -Name UniversalDashboard.Community -RequiredVersion 2.8.1
Import-Module -Name UniversalDashboard.UDPieChart3D
Get-UDDashboard | Stop-UDDashboard
Start-UDDashboard -Port 10005 -Dashboard (
New-UDDashboard -Title "Powershell UniversalDashboard" -Content {
$MultiArray = @()
$MultiArray += , @('Name', 'Age' )
$MultiArray += , @('Laila-Belle', 11)
$MultiArray += , @('Pixie', 9)
$MultiArray += , @('Zelda', 5)
$MultiArray += , @('Aurora', 3)
new-udpiechart3d -Id "PIECHART" -Title "New-UDPieChart3D" -data @($MultiArray)
}
)
Install
Install-Module UniversalDashboard.UDPieChart3D
Version
1.0.2
Last Updated
Monday, May 4, 2020
Tags
universaldashboard ud-dashboard ud-component ud-piechart3d
Author
psdevuk
Type
dashboard Component