'chart.js' Time Chart Not Displaying Properly
So I'm trying to create a simple chart using chart.js. The chart consists of price values for the y-axis and time values for the x-axis. The data is fetched from an API. The y-a
Solution 1:
Seems parser
doesn't really work well with. simply remove parser
in the option, you can see the clear result.
time: {
//parser: 'HH:mm',
tooltipFormat: 'HH:mm',
unit: 'minute',
stepSize: 10,
displayFormats: {
'minute': 'HH:mm',
'hour': 'HH:mm'
}
}
Post a Comment for "'chart.js' Time Chart Not Displaying Properly"