<s> from report_tools . reports import Report <EOL> from report_tools . chart_data import ChartData <EOL> from report_tools . renderers . googlecharts import GoogleChartsRenderer <EOL> from report_tools import charts <EOL> class MyReport ( Report ) : <EOL> renderer = GoogleChartsRenderer <EOL> pie_chart = charts . PieChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> template_chart = charts . TemplateChart ( title = "<STR_LIT>" , template = "<STR_LIT>" ) <EOL> column_chart = charts . ColumnChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> multiseries_column_chart = charts . ColumnChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> bar_chart = charts . BarChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> multiseries_bar_chart = charts . BarChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> line_chart = charts . LineChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> multiseries_line_chart = charts . LineChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> naughty_pie_chart = charts . PieChart ( title = "<STR_LIT>" , width = "<STR_LIT>" ) <EOL> def get_data_for_line_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:100> ] ) <EOL> return data <EOL> def get_data_for_multiseries_line_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> , <NUM_LIT:10> , <NUM_LIT:50> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT> , <NUM_LIT:8> , <NUM_LIT> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:100> , <NUM_LIT> , <NUM_LIT:2> ] ) <EOL> return data <EOL> def get_data_for_bar_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> ] ) <EOL> return data <EOL> def get_data_for_multiseries_bar_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:5> , <NUM_LIT:10> , <NUM_LIT:5> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:10> , <NUM_LIT:2> , <NUM_LIT:8> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ] ) <EOL> return data <EOL> def get_data_for_column_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> ] ) <EOL> return data <EOL> def get_data_for_multiseries_column_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:5> , <NUM_LIT:10> , <NUM_LIT:5> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:10> , <NUM_LIT:2> , <NUM_LIT:8> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ] ) <EOL> return data <EOL> def get_data_for_pie_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> ] ) <EOL> return data <EOL> def get_data_for_naughty_pie_chart ( self ) : <EOL> data = ChartData ( ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_column ( "<STR_LIT>" ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:20> ] ) <EOL> data . add_row ( [ "<STR_LIT>" , <NUM_LIT:1> ] ) <EOL> return data <EOL> def get_data_for_template_chart ( self ) : <EOL> pony_types = [ <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> ] <EOL> template_context = { <EOL> '<STR_LIT>' : pony_types <EOL> } <EOL> return template_context </s>
