0.6.5 • Published 1 year ago

react-milestones-vis v0.6.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

npm npm npm

React Milestones Visualization

import { Milestones } from 'react-milestones-vis';

export const Vikings = () => <Milestones
  aggregateBy="year"
  data={[
    {
      title: 'Vikings begin attacks on England.',
      year: 789
    },
    {
      title: 'The Oseberg Viking longship buried',
      year: 800
    },
    {
      title: 'Vikings found Dublin in Ireland.',
      year: 840
    },
    ...
  ]}
  mapping={{
    text: 'title',
    timestamp: 'year'
  }}
  parseTime="%Y"
  optimize
/>;

react-milestones-vis is based on the d3 based library d3-milestones: https://github.com/walterra/d3-milestones

Available Scripts

In the project directory, you can run:

yarn storybook

Runs storybook for development.\ Open http://localhost:6006 to view it in the browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.\ See the section about running tests for more information.

yarn build

Builds the app for production to the build folder using rollup.

0.6.3

1 year ago

0.6.2

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.4.0-node14

2 years ago

0.4.2-node14

2 years ago

0.4.1-node14

2 years ago

0.4.4-node14

2 years ago

0.4.3-node14

2 years ago

0.5.0

2 years ago

0.4.6-node14

2 years ago

0.4.5-node14

2 years ago

0.3.5-node14

2 years ago

0.3.4-node14

2 years ago

0.3.3-node14

2 years ago

0.3.2-node14

2 years ago

0.3.1-node14

2 years ago

0.3.0-node14

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago