Simple Example

It's easy enough to create a simple radar plot, here's how to create a simple radar plot using the following dummy dataframe:

import pandas as pd

df = pd.DataFrame({
    'class': ['swordsman', 'mage', 'assasin'],
    'PATK': [85, 50, 70],
    'MATK': [0, 90, 60],
    'ASPD': [50, 60, 80],
    'DEF': [80, 70, 75],
})
Class
PATK
MSPD
ASPD
DEF

swordsman

85

0

50

80

mage

50

90

60

70

assasin

70

60

80

75

Here's how to create a radar plot from the dataframe above

import reverievis as rv

rv.radar(data=df, 
            category='class', 
            values=df.columns[1:].to_list())
class attributes

Last updated