# react-manhattan-plot

> A manahttan plot built with Reactjs and D3js

Latest version **1.1.1** (published 2019-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-manhattan-plot
pnpm add react-manhattan-plot
yarn add react-manhattan-plot
bun add react-manhattan-plot
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-11-11 |
| First published | 2019-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ngocnn1104 |
| Maintainers | gijskant, ngocnn, oplantalech, rnugraha |

## Links

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

## Dependencies (3)

- [d3](https://npm.io/package/d3.md) ^5.12.0
- [react-measure](https://npm.io/package/react-measure.md) ^2.3.0
- [react-test-renderer](https://npm.io/package/react-test-renderer.md) ^16.9.0

## Recent versions

- 1.1.1 (latest) — 2019-11-11
- 1.1.0 — 2019-10-30
- 1.0.1 — 2019-09-09

## README

# react-manhattan-plot

> A Manhattan plot built with Reactjs and D3js

[![NPM](https://img.shields.io/npm/v/react-manhattan-plot.svg)](https://www.npmjs.com/package/react-manhattan-plot) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save react-manhattan-plot
```

## Usage

```jsx
import React, { Component } from 'react';

import ManhattanPlot from 'react-manhattan-plot';

class Example extends Component {
  render() {
    return <ManhattanPlot plotData={plotData} type="human" />;
  }
}
```

## Component's props

| Prop     | Type     | Required                           | Sample or Required values |
| -------- | -------- | ---------------------------------- | ------------------------- |
| plotData | Array    | Y                                  | Refer to `/example/src/mock.js` and `/example/src/mockHumanChromosomes.js` for more details. |
| type     | String   | N                                   | 'human' or undefined |
| onZoom   | Function | N (only works with `type='human'`) | (start, end) => { /\*_ do something _/ } |
| theme    | Object   | N                                  | Refer to `src/theme.js` for more details. |

## Development

Local development is broken into two parts (ideally using two tabs).
First, run rollup to watch your src/ module and automatically recompile it into dist/ whenever you make changes.

```bash
npm run start # runs rollup with watch flag
```

The second part will be running the example/ create-react-app that's linked to the local version of your module.

```bash
# (in another tab)
cd example
npm run start # runs create-react-app dev server
```

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