Hi,
if there some way to not show negative y-axis values when the data series is all set to zero?
I have tried setting
ticks: {
beginAtZero:true,
min: 0
}
for the y-axis scale but it doesn't appear to do the trick.

We'd need to do some work to support this. As a work around set ticks.max to be a positive number and this won't happen. It only occurs if at the end of finding the max and min, min === max.
OK thanks
But what is if you dont know max?
Why is this closed? The bug still exists.
$scope.chart_line_options = {
scales: {
yAxes: [
{
id: 'y-axis-1',
type: 'linear',
display: true,
position: 'left',
ticks: {
beginAtZero: true
}
}
]
}
};
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
Most helpful comment