# d3-timeline

> d3-timeline

Latest version **1.0.1** (published 2015-09-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install d3-timeline
pnpm add d3-timeline
yarn add d3-timeline
bun add d3-timeline
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-09-01 |
| First published | 2015-09-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Maintainers | chevett |

## Links

- npm: https://www.npmjs.com/package/d3-timeline
- Repository: https://github.com/ethoinformatics/d3-timeline
- Issues: https://github.com/ethoinformatics/d3-timeline/issues
- npm.io page: https://npm.io/package/d3-timeline

## Dependencies (5)

- [d3](https://npm.io/package/d3.md) ^3.4.13
- [lodash](https://npm.io/package/lodash.md) ^3.6.0
- [vashify](https://npm.io/package/vashify.md) ^0.4.0
- [date-math](https://npm.io/package/date-math.md) 0.0.1
- [node-lessify](https://npm.io/package/node-lessify.md) 0.0.8

## Recent versions

- 1.0.1 (latest) — 2015-09-01
- 1.0.0 — 2015-09-01

## README

d3-timeline
===========

```js
	var myTimeline = timeline({
			getBegin: function(d){ return d.beginTime; },
			getEnd: function(d){ return d.endTime; },
			getLabel: function(d){ return d.desc; },
		});

	myTimeline.add([{
			beginTime: new Date(2014, 7, 30),
			endTime: new Date(2014, 8, 1),
			desc: 'pizza',
		},
		{
			beginTime: new Date(2014, 8, 2),
			endTime: new Date(2014, 8, 4),
			desc: 'sandwich'
		},
		{
			beginTime: new Date(2014, 8, 2),
			endTime: new Date(2014, 8, 3),
			desc: 'cheeseburger',
		},
		{
			beginTime: new Date(2014, 8, 2),
			endTime: new Date(2014, 8, 6),
			desc: 'broccoli',
		}]);

	window.document.body.appendChild(myTimeline.element);
```

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