# dchart-area-with-line

> dchart-bar-multi-hori-gradient

Latest version **0.0.11** (published 2016-08-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install dchart-area-with-line
pnpm add dchart-area-with-line
yarn add dchart-area-with-line
bun add dchart-area-with-line
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2016-08-16 |
| First published | 2016-03-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | elvira |
| Maintainers | elvira |

## Links

- npm: https://www.npmjs.com/package/dchart-area-with-line
- npm.io page: https://npm.io/package/dchart-area-with-line

## Dependencies (2)

- [d3](https://npm.io/package/d3.md) ~3.5.6
- [dchart-core](https://npm.io/package/dchart-core.md) ~1.2.19

## Recent versions

- 0.0.11 (latest) — 2016-08-16
- 0.0.10 — 2016-08-16
- 0.0.9 — 2016-07-19
- 0.0.8 — 2016-06-04
- 0.0.7 — 2016-05-23
- 0.0.6 — 2016-05-08
- 0.0.5 — 2016-05-06
- 0.0.4 — 2016-04-13
- 0.0.3 — 2016-03-28
- 0.0.2 — 2016-03-28
- 0.0.1 — 2016-03-07

## README

dchart-area-with-line

符合dchart规范的区域折线图

### 安装

```
npm install dchart-area-with-line
```

### 用法
```
var Area = require('dchart-area-with-line');
var area = new Area(container, {
  xaxis: {
    type: 'time',           //轴类型
    format: '%Y/%m/%d %H:%M:%S',  //数据中的时间格式
    tickFormat: d3.time.format('%H:%M'),  //刻度上显示的时间格式化
    padding: [0.3, 0],      //柱状子间的间距[innerPadding, outerPadding],默认[0.9, 0.4]
    dy: 40,                 //位移
  },
  yaxis: {
    min: null,                 //默认null会自动计算数据中的最小值
    max: null,                 //默认null会自动计算数据中的最大值
    tickFormat: function () {},
    ticks: 4                   //显示4个刻度
  },
  gradientColors: {
    from: 'RGBA(0, 180, 255, .7)',     //渐变色起始值
    to: 'rgba(255,255,255, .01)',      //渐变色终止值
    orient: 'vertical',
  }
});
area.render([
        {"x": "2010/01/01 00:00:00", "y": [100, 66]},
        {"x": "2010/01/02 00:00:00", "y": [52, 99]},
        {"x": "2010/01/03 00:00:00", "y": [49, 78]}
      ]);
```

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