✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Alternate date X - axis is printing

Hi All,
I am trying to make x-axis as the month with year . But only alternative x-axis is printing . And some weird things are happening like

  1. x-axis is not coming what I had given
  2. Alternative x-axis is printing .
  3. When you hover on it it shows the x -axis but not the correct one.

I wanted x-axis what i gad given , please help me with this .
Thank You.

code:
import dash
import dash_core_components as dcc
import dash_html_components as html

external_stylesheets = [‘https://codepen.io/chriddyp/pen/bWLwgP.css’]
app = dash.Dash(name, external_stylesheets=external_stylesheets)

app.layout = html.Div([
dcc.Graph(
id=‘backlog_day’,
figure={
‘data’: [
{‘x’:[‘2019-1’, ‘2019-2’, ‘2019-3’, ‘2019-4’, ‘2019-5’, ‘2019-6’, ‘2019-7’, ‘2019-8’, ‘2019-9’, ‘2019-10’, ‘2019-11’, ‘2019-12’, ‘2020-1’] , ‘y’:[1,2,3,4,5,6,7,8,9,10,11,12,13], ‘type’: ‘bar’, ‘name’: ‘WHAT’}
],
‘layout’: {
‘title’:‘heloooo’
}
}
)])
if name == ‘main’:
app.run_server(debug=True)

pic: