title: Python horizontal bar plotly not showig the whole range of timestamp data
body: <p>I want to plot the data availability using pyplot. I got the code from @vestland. My monthly data is <a href="https://gofile.io/?c=cQNB3O" rel="nofollow noreferrer">here</a>.<br>
  In general, the data spans from January 2009 to January 2019. Each variable comes with its own time period.<br>
  Below is the code.   </p>
  
  <pre><code>import pandas as pd
  import plotly.express as px
  
  path  = r'C:\Users\....\availability3.txt'
  df  = pd.read_csv(path)
  df  = df.drop(['Unnamed: 0'], axis=1)
  
  fig = px.bar(df, x="Timestamp", y="variable", color='value', orientation='h',
               hover_data=["Timestamp"],
               height=300,
               color_continuous_scale=['firebrick', '#2ca02c'],
               title='Data Availabiltiy Plot',
               template='plotly_white',
              )
  
  fig.update_layout(yaxis=dict(title=''), 
                    xaxis=dict(
                        title='', 
                        showgrid=True, 
                        gridcolor='white',
                        tickvals=[]
                    )
                   )
  fig.show()
  </code></pre>
  
  <p>As you can see below, the plot shows only the first row of the data which is the first day.   </p>
  
  <p><a href="https://i.stack.imgur.com/pbVCY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pbVCY.png" alt="enter image description here"></a></p>
  
  <p>What I want is to show the whole range of the data on the x axis with corresponding values and colors. The result should show data from January 2009 to January 2019, variable values of 0 is shown on red and 1 in green.   </p>
  
  <p>Perhaps this is an issue with timestamp, because when using the number index, the plot is just okay.   </p>
  
  <p><strong>Edit</strong><br>
  By removing duplicates in the dataset and set timestamp as index, I got an almost the expected result. This the new code.   </p>
  
  <pre><code>fig = px.bar(df, y="variable", color='value', orientation='h',
               hover_data=[df.index],
               height=300,
               color_continuous_scale=['firebrick', '#2ca02c'],
               title='Data Availabiltiy Plot',
               template='plotly_white',
              )
  </code></pre>
  
  <p>Now the whole time span is showing as expected. But the value of x-axis timestamp is not yet showing. I will ask in another post   </p>