Goal

Goal() → {JSX.Element}

Component that isplays a chart showing the goal.

Properties
NameTypeDescription
isLoadingboolean

False if all the data have been fetched

scorenumber

Score of the goal to display

See
Returns:

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

Type: 
JSX.Element
Example
const score = 30
const userInfo={isLoading: false}
return (
 <Goal score={score} isLoading={userInfo.isLoading} />
)

Methods

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

Displays a custom legend for a chart.

Returns:

A JSX element representing the custom legend.

Type: 
JSX.Element
Example
return{
 <LegendGoal />
}