MCPcopy Create free account
hub / github.com/spotify/chartify / _radar_area_example_1

Function _radar_area_example_1

chartify/examples.py:1006–1021  ·  view source on GitHub ↗

# Basic Scatter

(total_by_fruit_and_country)

Source from the content-addressed store, hash-verified

1004
1005@_print_source
1006def _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

Callers 1

plot_radar_areaFunction · 0.85

Calls 8

set_titleMethod · 0.80
set_subtitleMethod · 0.80
set_legend_locationMethod · 0.80
textMethod · 0.45
areaMethod · 0.45
hide_yaxisMethod · 0.45
hide_xaxisMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected