def test_multiseries_donut():
 chart = Pie(inner_radius=0.3, pretty_print=True)
 chart.title = 'Browser usage by version in February 2012 (in %)'
 chart.add('IE', [5.7, 10.2, 2.6, 1])
 chart.add('Firefox', [0.6, 16.8, 7.4, 2.2, 1.2, 1, 1, 1.1, 4.3, 1])
 chart.add('Chrome', [0.3, 0.9, 17.1, 15.3, 0.6, 0.5, 1.6])
 chart.add('Safari', [4.4, 0.1])
 chart.add('Opera', [0.1, 1.6, 0.1, 0.5])
 assert chart.render()

def test_multiseries_donut ( ) : chart = Pie ( inner_radius = 0.3 , pretty_print = True ) chart . title = 'Browser usage by version in February 2012 (in %)' chart . add ( 'IE' , [ 5.7 , 10.2 , 2.6 , 1 ] ) chart . add ( 'Firefox' , [ 0.6 , 16.8 , 7.4 , 2.2 , 1.2 , 1 , 1 , 1.1 , 4.3 , 1 ] ) chart . add ( 'Chrome' , [ 0.3 , 0.9 , 17.1 , 15.3 , 0.6 , 0.5 , 1.6 ] ) chart . add ( 'Safari' , [ 4.4 , 0.1 ] ) chart . add ( 'Opera' , [ 0.1 , 1.6 , 0.1 , 0.5 ] ) assert chart . render ( )
test a donut pie chart with multiserie .