Perfomance

Perfomance() → {JSX.Element}

Component that displays a chart showing performances of the user.

Properties
NameTypeDescription
perfDataObject

The props passed to the component.

Properties
NameTypeDescription
isLoadingboolean

False if all the data have been fetched

dataArray.<object>

An array of objects containing data for the chart. {kind: string, value: number}

data[].kindstring

Category of the performance

data[].valuenumber

Value of the performance

See
Returns:

A JSX element containing a RadarChart element from the recharts library.

Type: 
JSX.Element
Example
const userSessions = {isLoading: false, data[{kind:'Vitesse', value: 220},...]}
return (
 <Perfomance perfData={userPerf} />
)

Methods

(inner) LegendPerf() → {JSX.Element}

Displays the performances legends around the radarchart.

Properties
NameTypeDescription
cxnumber

Position on X axe

cynumber

Position on Y axe

Returns:

A JSX element representing the custom legend.

Type: 
JSX.Element