0👍
When you say timestamps, are we talking about days or times? If it’s just days, you can use one x-axis like here: https://jsfiddle.net/jbmn01z6/
If you want time, then a bar chart is not a good idea. I don’t even know if it’s possible the way you would like it. I would use a line chart with a x-axis of the type: 'time'
. Then you can use and show your timestamps very precisely.
- Chartjs-Chart.js customization, two Y-Axis overlay, chart area padding, odd tick padding
- Chartjs-Chart.js cartesian axes – Modifying tool-tip based on which y-axis the data corresponds to
Source:stackexchange.com