title: Remove repeated years from x-axis in plotly
body: <p>I have draw a bar chart in plotly (python). The year value <code>2019</code> is repeated along y-axis. How can I display only one <code>2019</code> in the middle not others.</p>
  <p><a href="https://i.stack.imgur.com/YK70P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YK70P.png" alt="enter image description here" /></a></p>
  <p>My code:</p>
  <pre><code>        a = pd.DataFrame(a.groupby(by=['Year', 'Vendor Name']) 
          ['Spend'].sum())
         
          fig_2 = px.bar(a, x='Year', y='Spend', 
          color='Vendor Name', barmode='stack', text='Spend')
          fig_2.update_traces(marker_line_width=0)
          fig_2.update_layout(
                      title=&quot;&quot;,
                      xaxis_title=&quot;&quot;,
                      yaxis_title=&quot;Total Spend&quot;,
                      legend_title=&quot;Vendor names&quot;,
                      height=450,
                      width=700,
                      
                      )
  </code></pre>