Black Lives Matter. Please consider donating to Black Girls Code today.

Bar Chart is Summarizing Dates on X-Axis

Hello,

I am using offline mode to build a simple bar graph. I pass it two lists (one for the x-axis and one for the y-axis). The data in the lists is specific and is all I want to graph. I want the specific dates to show on the x-axis and I want the numeric count (# of discoveries that year) to show on the y-axis. I am able to get the code below to work but for some reason plotly keeps summarizing the dates on the x-axis onto decades. I only wnat my specifc dates to show on the x-axis. Any advise on how to do this? See attached

from plotly.offline import plot
import plotly.graph_objs as go

x_axis = [str(1885), 1887, 1888, 1913, 1884, 1891, 1892, 1929, 1868, 1896]
y_axis = [12, 10, 9, 8, 7, 7, 7, 7, 6, 6]

plot([go.Bar(x=x_axis, y=y_axis)])

I believe this is has the same solution as here: