Chart.js
Chart.js copied to clipboard
Bar chart is not generating for same timestamp (x value)
Expected Behavior
Bar chart to generate
Current Behavior
Bar chart not generating . if i change chart type to line chart. it works but bar chart not generating
Possible Solution
Allow plotting of data for same timestamp.
Steps to Reproduce
https://snipboard.io/xIzgcT.jpg here is my screenshot. You can see i have some data they have same timestamp. it works well with line chart but bar chart not generating
https://codepen.io/sheikh-shuhad-zaman/pen/bGepexr
if you go to line number 39 and you will see values are like this data:[{time: "15 Oct 22:45", value: 0.48}, {time: "15 Oct 22:45", value: 0.48}, {time: "15 Oct 22:49", value: 0.15}] so if i change 2nd item to 15 Oct 22:47 or any other value. it works.
Context
cannot generate bar chart from my dataset.
Environment
- Chart.js version: @coreui/chartjs": "^2.0.0", @coreui/react-chartjs": "^1.0.0",
- Browser name and version : google chrome Version 86.0.4240.75 (Official Build) (64-bit), firefox 81.0.2 (64-bit)
- Link to your project: https://snipboard.io/xIzgcT.jpg