Last active
May 11, 2016 01:57
-
-
Save atonse/515a0c6ba90e1d200075a38c68209adb to your computer and use it in GitHub Desktop.
d3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
didRender() { | |
this._super(...arguments); | |
let svg = d3.select(this.$('.pipeline-view-container')[0]).append('svg'); | |
let xScale = d3.time.scale() | |
.domain([new Date(), new Date()]) | |
.range([0, 500]) | |
.ticks(d3.time.day, 1); | |
let xAxis = d3.svg.axis() | |
.scale(xScale) | |
.tickSize(5); | |
svg.append("g") | |
.attr('class', 'x axis') | |
.attr("transform", "translate(0,100)") | |
.call(xAxis); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.8.0", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "release", | |
"ember-data": "2.5.2", | |
"ember-template-compiler": "release", | |
"d3": "https://d3js.org/d3.v3.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment