#NEWLINE# def test_piechart_2( ) : #NEWLINE# #INDENT# ' PieChart with custom colors ' #NEWLINE# coordinate_system = cartesius . CoordinateSystem ( ) #NEWLINE# piechart_data = ( charts . data ( 'abc' , 1 , fill_color = ( 255 , 200 , 200 ) ) , charts . data ( 'cde' , 2 , fill_color = ( 200 , 255 , 200 ) ) , charts . data ( 'efg' , 5 , fill_color = ( 200 , 200 , 255 ) ) , charts . data ( 'ijk' , 3 , fill_color = ( 255 , 255 , 255 ) ) ) #NEWLINE# piechart = charts . PieChart ( data = piechart_data , color = ( 0 , 0 , 0 ) ) #NEWLINE# coordinate_system . add ( piechart_data ) #NEWLINE# coordinate_system . add ( elements . Axis ( horizontal = True , hide = True ) ) #NEWLINE# coordinate_system . add ( elements . Axis ( vertical = True , hide = True ) ) #NEWLINE# return ( coordinate_system . draw ( 300 , 200 ) , coordinate_system . draw ( 300 , 200 , antialiasing = True ) )