1.0.9 • Published 2 years ago

radial-clock v1.0.9

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Radial Clock

npm.io

Publish documentation to Surge Publish to npmjs.org

This is a lightweight JavaScript component written with D3.js and is integrable with native JavaScript as well as web frameworks.

This plugin is written to keep track of annual events (e.g., conferences).

Injection

  ...
  <script src='https://d3js.org/d3.v4.min.js' text='application/js'></script>
  <script src='https://unpkg.com/radial-clock@%version%/dist/radial-clock.min.js' text='application/js'>

Usage

const data = [
  {
    "title": "ICCV",
    "fullForm": "International Conference on Computer Vision",
    "milestones": [
      {
        "type": "range",
        "from": "27 October 2019",
        "to": "2 November 2019"
      }
    ]
    "url": "https://iccv2019.thecvf.com"
  }
];

const myClockOptions = {
  demarkMonths: true
};

const canvas = d3.select('svg');
const clock = new RadialClock(myClockOptions);
canvas.append(_ => clock.getClockNode(data));

There is a list of items yet to be done for when time permits.

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago