1.0.2 • Published 5 years ago
@berkelmas/horizontal-timeline v1.0.2
Horizontal Timeline
Introduction
D3.js powered, pure javascript without any other external third party dependencies horizontal timeline. Compatible with modern JS frameworks such as React, Angular. React and Angular wrappers are coming soon.
Code Samples
npm install --save @berkelmas/horizontal-timeline
import { createTimeline } from "@berkelmas/horizontal-timeline";
createTimeline(selector, onZoom, onSelectData);
// onZoom function gets axisStartDate and axisEndDate
// onSelectData function gets data as json object.