def test_legend_at_bottom(Chart):
 chart = Chart(legend_at_bottom=True)
 chart.add('1', [4, (-5), 123, 59, 38])
 chart.add('2', [89, 0, 8, 0.12, 8])
 lab = chart.render()
 chart.legend_at_bottom = False
 assert (lab != chart.render())

def test_legend_at_bottom ( Chart ) : chart = Chart ( legend_at_bottom = True ) chart . add ( '1' , [ 4 , ( - 5 ) , 123 , 59 , 38 ] ) chart . add ( '2' , [ 89 , 0 , 8 , 0.12 , 8 ] ) lab = chart . render ( ) chart . legend_at_bottom = False assert ( lab != chart . render ( ) )
test legend at bottom option .