Shimoku docs


Radar charts (also known as spider charts, polar charts, web charts, or star plots) are a way to visualize multivariate data. They are used to plot one or more groups of values over multiple common variables.

The method to use

The method is shimoku.plt.radar()
It must contain the following input variables:
data: Union[str, DataFrame, List[Dict]
x: str, y: List[str]
menu_path: str
order: int
And accepts the following input variable as optional:
title: Optional[str]
rows_size: Optional[int]
cols_size: Optional[int]
padding: Optional[List[int]]


1. Default configuration

data_ = [
{'name': 'Matcha Latte', 'value1': 78, 'value2': 6, 'value3': 85},
{'name': 'Milk Tea', 'value1': 17, 'value2': 20, 'value3': 63},
{'name': 'Cheese Cocoa', 'value1': 57, 'value2': 10, 'value3': 95},
{'name': 'Walnut Brownie', 'value1': 35, 'value2': 71, 'value3': 16},
x='name', y=['value1', 'value2', 'value3'],
order=0, rows_size=2, cols_size=12,
The result is:
The radar in the default configuration. Note the use of a tooltip.
The chart has tooltips, when you hover the mouse over the figure, for example in this figure, Cheese Cocoa and three values.

2. Title for the chart, changing data, size, and padding

data_ = [
{'name': 'Matcha Latte', 'value1': 78, 'value2': 6, 'value3': 85, 'value 4': 25},
{'name': 'Milk Tea', 'value1': 17, 'value2': 10, 'value3': 63, 'value 4': 35},
{'name': 'Cheese Cocoa', 'value1': 38, 'value2': 15, 'value3': 65, 'value 4': 45},
{'name': 'Walnut Brownie', 'value1': 9, 'value2': 71, 'value3': 16, 'value 4': 40},
x='name', y=['value1', 'value2', 'value3'],
order=0, rows_size=3, cols_size=8,
title='Index for preferred dessert',
The result is:
The radar chart is fully customized. It received a title, note the space before the component using padding='0,0,0,1', and size with rows_size=3, cols_size=8.
Changing menu_path The menu_path can be modified.
It is possible to use any number of rows.
Last modified 10mo ago