Components

PeakMonth

<PeakMonth swimmerData allSwimmerData allSwimmerDataSubComponents event />

Peak Month is responsible for handling the logic and displaying the graph that either, Shows for a specific event the months over the year where best times were swam, or over all events the subcomponents of months over the year.

Constructor

# <PeakMonth swimmerData allSwimmerData allSwimmerDataSubComponents event />

PropTypes:
Name Type Required Description Default
swimmerData arrayOf No swimmerData is an Array of Swimmer Objects from a specifc Sheet (aka. Specific event, 50m Fr, 100m Bk)
allSwimmerData arrayOf No allSwimmerData is an Array of All the Swimmer Objects from all Sheets (aka. All Events)
allSwimmerDataSubComponents arrayOf No allSwimmerDataSubComponents is an Array of all the Sheets as SubComponents
event string No Event is a string passed of the event name (ex. 50m Fr, 100m Bk)

View Source components/analytics/peakMonth/peakMonth.js, line 287

Example