Perfomance() → {JSX.Element}
Component that displays a chart showing performances of the user.
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
perfData | Object | The props passed to the component. Properties
|
- See
- https://recharts.org/en-US/api/RadarChart for further information on `RadarChart` element from recharts api
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.
Name | Type | Description |
---|---|---|
cx | number | Position on X axe |
cy | number | Position on Y axe |
Returns:
A JSX element representing the custom legend.
- Type:
- JSX.
Element