Colors
We can create a radar plot by giving the color as we want. By providing the color value in the form of a list in the 'colors' parameter. The colors list must match the number of objects on the plot's radar. We can also give an alpha value to the color whether you want it to fade or vice versa in the colors_alpha parameter.
import reverievis as rv
import pandas as pd
df = pd.DataFrame({
'student': ['jake', 'amy'],
'Math': [6, 10],
'Science': [7, 9],
'Art': [10, 8],
})
rv.radar(data=df,
category='student',
values=df.columns[1:].to_list(),
scaled=[0,10],
colors=['#FC4F00', '#654E92'],
colors_alpha=0.5,
title='Jake vs Amy School Grades')
Last updated