radial-clock
v1.0.9
Published
A lightweight JavaScript component to create radial clocks.
Downloads
2
Readme
Radial Clock
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.