I'm new to using ng2-charts in my application and I was wondering if I could increase the max value of the Y-axis by like 5 so that the top of my bar chart doesnt reach all the way to the top of the chart. Currently when I have a max value of 90, the max value of my Y-axis is also 90 and this causes some visually unpleasant overlap.
I'm currently using the default code from the documentation, which is as follows:
public barChartOptions: ChartOptions = {
responsive: true,
scales: { xAxes: [{}], yAxes: [{}] }
};
public barChartLabels: Label[] = [
'2006',
'2007',
'2008',
'2009',
'2010',
'2011',
'2012'
];
public barChartType: ChartType = 'bar';
public barChartLegend = true;
public barChartData: ChartDataSets[] = this.fetchData();
public changeChart(): void {
this.barChartType = this.barChartType === 'bar' ? 'line' : 'bar';
}