πŸš€QuickStart

How to use ReverieVis

Create dataset to visualize Radarplot

import pandas as pd

df = pd.DataFrame({
    'player': ['ronaldo', 'messi'],
    'PAC': [81, 81],
    'SHO': [92, 89],
    'PAS': [78, 90],
    'DRI': [85, 94],
    'DEF': [34, 34],
    'PHY': [75, 64],
})

Here is a dummy dataframe that will be used to create a radar plot

player
PAC
SHO
PAS
DRI
DEF
PHY

ronaldo

81

92

78

85

34

75

messi

81

89

90

94

34

64

Here is the code to create a radar plot easily using Radarplot

import reverievis as rv

rv.radar(data=df, 
            category='player', 
            values=df.columns[1:].to_list(),
            scaled=[0,100],
            colors=['#FF6D60', '#6DA9E4'],
            title='Ronaldo vs Messi FIFA 23 Stats')

Here's the result of Radarplot making a radar plot. pretty easy isn't it? by using Radarplot makes a good radarplot very easy.

ronaldo vs messi stats

Last updated