jiahuang / d3-timeline

Simple JS timeline plugin for d3
1.04k stars 281 forks source link

Added property to turn time axis on/off #51

Closed gilxa1226 closed 9 years ago

gilxa1226 commented 9 years ago

I've cleaned up the commit, not sure why the README.md and example.html are showing full replaces, not much changed in each.

Property added is called showTimeAxis(true | false). The property defaults to true to keep backwards compatibility.

Example of use:

var chart = d3.timeline().showTimeAxis(false);

example.html was updated to show the original rectangle timeline without the axis. Also updated README.md with usage.

jiahuang commented 9 years ago

Thanks!