# react-biorhythm

> A fun React component to display a biorhythm graph on screen

Latest version **0.0.2** (published 2021-09-13) · GPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install react-biorhythm
pnpm add react-biorhythm
yarn add react-biorhythm
bun add react-biorhythm
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2021-09-13 |
| First published | 2021-09-13 |
| Weekly downloads | 0 |
| License | GPL-3.0-only |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 95.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | exfinen |

## Links

- npm: https://www.npmjs.com/package/react-biorhythm
- Repository: https://github.com/exfinen/react-biorhythm
- Homepage: https://github.com/exfinen/react-biorhythm#readme
- Issues: https://github.com/exfinen/react-biorhythm/issues
- npm.io page: https://npm.io/package/react-biorhythm

## Dependencies (3)

- [dayjs](https://npm.io/package/dayjs.md) ^1.10.7
- [react](https://npm.io/package/react.md) ^17.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.2

## Recent versions

- 0.0.2 (latest) — 2021-09-13

## README

# react-biorhythm

A fun React component to display a biorhythm graph on screen

![screenshot](./screenshot.png)

## Usage

```typescript
<Biorhythm
  birthday={birthday}  // (Optional)
  width={100}  // character width of the chart (Optional)
  height={50}  // character height of the chart (Optional)
  daysBeforeToday={20}  // days to show before today in chart (Optional)
  daysAfterToday={30}  // days to show after today in chart (Optional)
/>
```

## Formula used
```
rhythm = sin(2*PI*t*T)
```

where T is the period of one of the below cycles

| Period | Cycle Type |
|--------|------------|
| 23 | Physical |
| 28 | Emotional |
| 33 | Intellectual |

and t is the number of days since birth i.e.
```
t = today - birthday
```

## Wiki
https://en.wikipedia.org/wiki/Biorhythm_(pseudoscience)

---
_Source: https://npm.io/package/react-biorhythm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
