# upcharts

> make some descriptions here!

Latest version **1.2.3** (published 2021-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install upcharts
pnpm add upcharts
yarn add upcharts
bun add upcharts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2021-10-28 |
| First published | 2021-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 697.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Y-lonelY |
| Maintainers | ylonely |
| Keywords | ["react", "chart"] |

## Links

- npm: https://www.npmjs.com/package/upcharts
- Homepage: https://github.com/Y-lonelY/up-charts
- Issues: https://github.com/Y-lonelY/up-charts/issues
- npm.io page: https://npm.io/package/upcharts

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [numbro](https://npm.io/package/numbro.md) ^2.3.2
- [ele-utility](https://npm.io/package/ele-utility.md) ^1.1.15
- [@types/echarts](https://npm.io/package/@types/echarts.md) ^4.9.8
- [echarts-for-react](https://npm.io/package/echarts-for-react.md) ^3.0.1

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2021-10-28
- 1.2.2 — 2021-10-01
- 1.2.0 — 2021-09-25
- 1.1.26 — 2021-09-24
- 1.1.24 — 2021-09-09
- 1.1.22 — 2021-09-08
- 1.1.20 — 2021-09-08
- 1.1.18 — 2021-09-08
- 1.1.16 — 2021-09-08
- 1.1.14 — 2021-09-08
- 1.1.12 — 2021-09-08
- 1.1.10 — 2021-08-07
- 1.1.8 — 2021-08-07
- 1.1.6 — 2021-06-22
- 1.1.5 — 2021-06-22
- … 9 more at https://npm.io/package/upcharts/versions

## README

# UPCHARTS📈

UPCHARTS is a “wheel”（yeah, u konw what i mean!👀），it can help you with <b>React Visualization Library</b> rather than spending lots of time on how to configure these charts, and what you need to to is just input the data!

## Getting Started

`npm install upchart --save` or `yarn upchart`, than you can import these instance in the React projects! 


## Development

### Local

<strong>ADD LOCAL DEPENDENCY</strong>

- `cd example` goto example directory
- `npm i` add lots of npm's packages🙉

<strong>LOCAL DEVELOPMENT</strong>

- `npm run ex` To start the example development
- `npm run dev` To listen anything changes in ./src and move the whole `src` directory to `./example/src`
- `npm run hbuild` To listen anything changes in ./src and rebuild the npm

Attention, i have created the `npm` directory, so you can publish the npm package in this folder, so you can config the `control.sh` to do something, in this case to avoid some unless dependencies!


### How to build?

1. do `npm install` to import some dependences
2. develop under `src/` directory（or you can modify `rollup.config.js` -> `input` to change the rule）
3. do `npm run build` to generate `index.js` on root，the publish it to the NPM platform


## About

### Support Typescript

Firstly, you need to `npm install --save typescript @types/node @types/react @types/react-dom @types/jest` and `npm install --save-dev @rollup/plugin-typescript` to support Typescript compile and package!

Then, we need to add some configs:
- remove `outDir` in `tsconfig.json`, or you will caught some errors when packing
- config `types` in `package.json`, which will take the type define file into the bundle
- config `files` to open whitelist, used to publish the target files to npm

Attention: `dependencies` is required to support the `.d.ts` file, see [publish](https://www.tslang.cn/docs/handbook/declaration-files/publishing.html) for more details

### React

In most case, you will not want to include some packages(like `React`, `lodash` etc) when bundle up.

You can config `external: ["react", "react-dom"]` in `rollup.config.js` to avoid this case, it will not the bundle up the whole `react`, and will replace with `var React = require('react');`, so you must ensure that you have included the `react` in your project!

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