Thanks, they are all the same length. I feel like I am so close now:
I think i have the side by side working now except, i’ve now lost the bars on the rest of the days.
# Bokeh Chart
output_file("bar_mixed.html")
curdoc().theme = 'dark_minimal'
bardata = {
'x_values': report01data.xcords,
'bar1': report01data.bar1,
'bar2': report01data.bar2,
'bar3': report01data.bar3,
'bar4': report01data.bar4,
'bar5': report01data.bar5
}
source = ColumnDataSource(data=bardata)
logger.info(bardata)
logger.info(source)
p = figure(x_range=report01data.xcords, plot_height=450, toolbar_location=None, title="Performance Summary")
# Draw bar graph
p.vbar(x=dodge('bar1', -0.5, range=p.x_range), top='bar1', width=0.5, color="#99F761", line_color="white", alpha=0.5, source=source)
p.vbar(x=dodge('bar2', -0.25, range=p.x_range), top='bar2', width=0.5, color="#F77461", line_color="white", alpha=0.5, source=source)
p.vbar(x=dodge('bar3', 0, range=p.x_range), top='bar3', width=0.5, color="#F4F761", line_color="white", alpha=0.5, source=source)
p.vbar(x=dodge('bar4', 0.25, range=p.x_range), top='bar4', width=0.5, color="#61E4F7", line_color="white", alpha=0.5, source=source)
p.vbar(x=dodge('bar5', 0.5, range=p.x_range), top='bar5', width=0.5, color="#BF61F7", line_color="white", alpha=0.5, source=source)
# Draw line graph
p.line(x=report01data.xcords, y=report01data.line1, color="blue", line_width=2)
p.line(x=report01data.xcords, y=report01data.line2, color="purple", line_width=2)
#p.y_range.start = 0
p.x_range.range_padding = 0.01
p.xaxis.major_label_orientation = "vertical"
p.xgrid.grid_line_color = None
show(p)
I should probably add those lines to the CDS too