som
sometime
npm i sometime
som

sometime

create calendar-based dataviz easily

by Spencer Kelly

0.0.8 (see all)License:MITTypeScript:Not Found
npm i sometime
Readme
calendar visualization

work-in-progress

renders html calendars using spacetime date library

demo:

npm i sometime

image

const sometime = require('sometime')
let el = document.querySelector('body')

let cal = sometime.year.weekAlign('2019')
cal.color('june 5th 2019', 'june 8th 2019', 'red')
el.innerHTML = cal.build()

byMonth() renders a typical calendar-representation:

let cal = sometime.quarter.byMonth('june 1 2019')
cal.color('june 5th 2019', 'june 8th 2019', 'red')
el.innerHTML = cal.build()

image

Output

by default, it returns html strings, but...

output is handled with Jason Miller's htm package, so it can output to a React template, or anything:

const sometime = require('sometime')
const react = require('react')

let c = sometime.year.leftAlign('2019')
c.bind(react.createElement) // anything

See also:

Downloads/wk

5

GitHub Stars

0
No data available

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
No data available
VersionTagPublished
0.0.8
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial