-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
In ChartJS 2.1.0 a line chart ignores the beginAtZero option, if no y-values are present. This was also mentioned in #1581 (comment) . I want to avoid having negative values.
Config:
type: 'line',
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}],
xAxes: [{
gridLines: {
display: false
}
}]
},
responsive: true,
maintainAspectRatio: false
}
Screenshot: