You need to tell ChartJS which axis to begin at zero. Here’s an example
$db = New-UDDashboard -Title "BeginAtZero" -Content {
New-UDChart -Type Line -Endpoint {
1..10 | % {
[PSCustomObject]@{
Name = $_
Random = Get-Random -Minimum 1000 -Maximum 10000
}
} | Out-UDChartData -DataProperty Random -LabelProperty Name
} -Options @{
scales = @{
yAxes = @(
@{
ticks = @{
beginAtZero = $true
}
}
)
}
}
}
Start-UDDashboard -Port 1111 -Dashboard $db