David-Desmaisons / vue-plotly

📈 vue wrapper for plotly.js
https://david-desmaisons.github.io/vue-plotly/
MIT License
255 stars 74 forks source link

Bar chart with x axis date not working if there is only one value in data #24

Open alexisagos opened 3 years ago

alexisagos commented 3 years ago

Hello,

I have reproduced the bug here with a rather simple chart. The issue is that there is no bar showing when there is one value in data but as soon as we add values, the bars show up again. You can switch between the commented line and the one above to notice the difference.

The expected result is to have the bar show on its own and not to dissappear.

I have reproduced the chart with the plotly library on its own and this bug isn't present.

Any help appreciated !

https://codesandbox.io/s/vue-plotly-bug-4c55z PS: Sandbox can take a while to load !