Changed to an area plot
@@ -20,7 +20,7 @@ df = pd.melt(df, id_vars=df.index.name,
var_name = 'Experiment',
value_name='Measurement')
-chart = alt.Chart(df).mark_bar(opacity=0.3).encode(
+chart = alt.Chart(df).mark_area(opacity=0.3, interpolate='step').encode(
x=alt.X('Measurement',bin = alt.BinParams(maxbins=100)),
y=alt.Y('count(*):Q', stack=None),
color=alt.Color('Experiment',
@@ -28,4 +28,4 @@ chart = alt.Chart(df).mark_bar(opacity=0.3).encode(
'#008000',
'#ff0000'])
)
-).configure_bar(binSpacing=0)
\ No newline at end of file
+)
\ No newline at end of file
