Display date on x axis in bar chart

1
Hi, How can I display date on x axis in bar chart and can i define the start point and end point of bar? Thanks in advance.  
asked
2 answers
2

https://plot.ly/javascript/bar-charts/#customizing-individual-bar-widths

 

Take a look at that link from the plotly documentation. It shows you how to create bars of varying width. If you want the date on the x-axis, simply pass date values as your x-parameter. Plotly automatically recognizes and handles it as a date.

 

If you do use time for your x-axis, you need to supply the width values in milliseconds.

answered
0

Which chart widget are you using?

answered