# Basic Scatter
(total_by_fruit_and_country)
| 1004 | |
| 1005 | @_print_source |
| 1006 | def _radar_area_example_1(total_by_fruit_and_country): |
| 1007 | """# Basic Scatter""" |
| 1008 | ch = chartify.RadarChart(True, layout="slide_50%") |
| 1009 | ch.set_title("Radar Area Chart") |
| 1010 | ch.set_subtitle("Each vertex plotted counterclockwise starting from top") |
| 1011 | ch.plot.text( |
| 1012 | total_by_fruit_and_country.groupby("country")["quantity"].max().reset_index(), |
| 1013 | "quantity", |
| 1014 | text_column="country", |
| 1015 | text_align="center", |
| 1016 | ) |
| 1017 | ch.plot.area(total_by_fruit_and_country, "quantity", color_column="fruit") |
| 1018 | ch.axes.hide_yaxis() |
| 1019 | ch.axes.hide_xaxis() |
| 1020 | ch.set_legend_location("outside_bottom") |
| 1021 | ch.show(_OUTPUT_FORMAT) |
| 1022 | |
| 1023 | |
| 1024 | @_print_source |
no test coverage detected