removed second encoding call
and moved size into other encoding call
@@ -18,7 +18,8 @@ line = alt.Chart(stocks).mark_line().encode(
rule = alt.Chart(stocks).mark_rule().encode(
y = alt.Y('average(price)', ),
- color='symbol'
-).encode(size=alt.SizeValue(2))
+ color = 'symbol',
+ size = alt.SizeValue(2)
+)
chart = (line + rule)
