in chartify/_core/radar_chart.py [0:0]
def __init__(self, blank_labels=options.get_option("chart.blank_labels"), layout="slide_50%"):
"""Create a Radar Chart instance.
Note:
Radar charts plot each vertex in counter-clockwise order starting
from the top.
Args:
blank_labels (bool): When true removes the title,
subtitle, axes, and source labels from the chart.
Default False.
layout (str): Change size & aspect ratio of the chart for
fitting into slides.
- 'slide_100%'
- 'slide_75%'
- 'slide_50%' (Suggested for Radar Charts)
- 'slide_25%'
"""
# Validate axis type input
valid_axis_types = ["linear", "log"]
self._axis_type = "linear"
self._x_axis_type, self._y_axis_type = self._axis_type, self._axis_type
if self._axis_type not in valid_axis_types:
raise ValueError("axis_type must be one of {options}".format(options=valid_axis_types))
self._blank_labels = options._get_value(blank_labels)
self.style = Style(self, layout)
self.figure = self._initialize_figure(self._axis_type, self._axis_type)
self.style._apply_settings("chart")
self.callout = Callout(self)
self.axes = BaseAxes._get_axis_class(self._axis_type, self._axis_type)(self)
self.plot = PlotRadar(self)
self._source = self._add_source_to_figure()
self._subtitle_glyph = self._add_subtitle_to_figure()
self.figure.toolbar.logo = None # Remove bokeh logo from toolbar.
# Reverse the order of vertical legends. Used with stacked plot types
# to ensure that the stack order is consistent with the legend order.
self._reverse_vertical_legend = False
# Logos disabled for now.
# self.logo = Logo(self)
# Set default for title
title = """ch.set_title('Takeaway')"""
if self._blank_labels:
title = ""
self.set_title(title)