I feel like the dots on the chart are too big:
Is there a way to change this?
The Chart.js documentation shows that datasets have pointRadius properties – how can I change this property? New-UDBarChartDataset
does not accept -pointRadius
, and New-UDChart will not take -Options @{pointRadius = 1}
The code I’m using for this:
New-UDChart -Title "Vulnerabilities" -BackgroundColor "#232323" -Type "Line" -Endpoint {
#False data for now
$Data = @(
@{Date="11/20/2018";Critical=0;High=140;Medium=18}
@{Date="11/21/2018";Critical=3;High=110;Medium=18}
@{Date="11/22/2018";Critical=10;High=128;Medium=18}
@{Date="11/23/2018";Critical=7;High=139;Medium=18}
@{Date="11/24/2018";Critical=1;High=148;Medium=18}
@{Date="11/25/2018";Critical=0;High=149;Medium=19}
@{Date="11/26/2018";Critical=1;High=143;Medium=18}
@{Date="11/27/2018";Critical=0;High=86;Medium=17}
)
#LabelProperty = Y-Axis DataProperty = X-Axis
$Data | Out-UDChartData -LabelProperty "Date" -Dataset @(
New-UDBarChartDataset -Label "Critical" -DataProperty Critical -BackgroundColor "#30f02525" -BorderColor "#f02525" -BorderWidth 2
New-UDBarChartDataset -Label "High" -DataProperty High -BackgroundColor "#30ff944c" -BorderColor "#ff944c" -BorderWidth 2
New-UDBarChartDataset -Label "Medium" -DataProperty Medium -BackgroundColor "#30eaec07" -BorderColor "#eaec07" -BorderWidth 2
)
} # End Vuln UDChart