Skip to content

danielpradilla/d3clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

d3clock

An analog clock implementation in d3.

d3clock

Read the post here

I borrowed some ideas from:

Usage:

Call d3clock(config) for each clock instance

eg:

d3clock({
	target:'#chart1',
	face:'modern',
	width:1000,
	// date:'Mon May 25 2015 10:09:37',
	TZOffset:{
		hours:0
	}
});

You can create several instances in a page (for showing multiple time zones, for example)

If you send a date value in the config object, it shows a fixed time (good for testing)

Available faces

  1. sbb: The famous Swiss Railway Clock
  2. modern: A somewhat modern/minimalist face
  3. braun: A Braun BN0021-ish face

About

an analog clock implementation in d3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages