0

My values are ranging from 0 to -6000... However, chart.js line chart is drawing the y-axis starting from 0 down up to -25000... The lines therefore almost overlap each other. How can I prevent the y-axis from drawing those excess values so my chart will look bigger.

Config is as follows:

type: 'line',
data: {
    labels: ['Mon','Tue','Wed','Thu','Fri','Sat','Sun'],
    datasets: [
        {
            label: 'Sample',
            data: [0, -2000, -1500, -1300, -4000, -4800, -4950]
        }
    ]
}
iPhoneJavaDev
  • 821
  • 5
  • 33
  • 78

0 Answers0