diff --git a/tests/examples_methods_syntax/layered_chart_with_dual_axis.py b/tests/examples_methods_syntax/layered_chart_with_dual_axis.py index 6f6cd86d6..3947380a2 100644 --- a/tests/examples_methods_syntax/layered_chart_with_dual_axis.py +++ b/tests/examples_methods_syntax/layered_chart_with_dual_axis.py @@ -15,12 +15,12 @@ ) area = base.mark_area(opacity=0.3, color='#57A44C').encode( - alt.Y('average(temp_max)').title('Avg. Temperature (°C)', titleColor='#57A44C'), + alt.Y('average(temp_max)').axis(title='Avg. Temperature (°C)', titleColor='#57A44C'), alt.Y2('average(temp_min)') ) line = base.mark_line(stroke='#5276A7', interpolate='monotone').encode( - alt.Y('average(precipitation)').title('Precipitation (inches)', titleColor='#5276A7') + alt.Y('average(precipitation)').axis(title='Precipitation (inches)', titleColor='#5276A7') ) alt.layer(area, line).resolve_scale(