granite-timeline
A timeline rendering element using d3 and d3-timelines plugin
granite-timeline
A timeline rendering element using d3 and d3-timeline plugin
Based on Polymer 2.x.
Doc & demo
https://lostinbrittany.github.io/granite-timeline
Usage
<granite-timeline
data='[{"times":[{"starting_time":1355752800000,"ending_time":1355759900000}, {"starting_time":1355767900000,"ending_time":1355774400000}]},{"times":[{"starting_time":1355759910000,"ending_time":1355761900000}]},{"times":[{"starting_time":1355761910000,"ending_time":1355763910000}]}]'
debug></granite-timeline>
Install
Install the component using Bower:
$ bower install LostInBrittany/granite-timeline --save
Or download as ZIP.
Usage
Import Web Components' polyfill (if needed):
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
Import Custom Element:
<link rel="import" href="bower_components/granite-timeline/granite-timeline.html">
Start using it!
<granite-timeline data="{{data}}" axis="{{axis}}"></granite-timeline>
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- polymer#Polymer/polymer#^2.0.0
- granite-js-dependencies-grabber#LostInBrittany/granite-js-dependencies-grabber#^1.2.1
- d3#^5.1.0
- d3-timeline#LostInBrittany/d3-timeline#8786143466f4fd8a2ebe662a4c51967ff5a18141
- Released
- 2018-04-30
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 2.0+
- Polymer 3.0+ in 2.0.0
- Browser
- Browser Independent
Vaadin Add-on Directory
Find open-source widgets, add-ons, themes, and integrations for your Vaadin application.
The channel for finding, promoting, and distributing Vaadin add-ons.