cms/app-client/app/components/visu-langues.js
changeset 95 f7ab931581af
parent 93 f7223e2f3023
child 123 4c97e9da1416
equal deleted inserted replaced
94:62984937a062 95:f7ab931581af
     1 import Ember from 'ember';
     1 import Ember from 'ember';
     2 
     2 
     3 export default Ember.Component.extend({
     3 export default Ember.Component.extend({
     4   didInsertElement: function(){
     4   didInsertElement: function(){
     5     var _this = this;
     5     var _this = this;
     6 
       
     7     var margin = {top: 20, right: 0, bottom: 0, left: 0},
     6     var margin = {top: 20, right: 0, bottom: 0, left: 0},
     8         width = 560,
     7         width = Ember.$("#chart_div").width(),
     9         height = 600 - margin.top - margin.bottom,
     8         height = 600 - margin.top - margin.bottom,
    10         formatNumber = d3.format(",d"),
     9         formatNumber = d3.format(",d"),
    11         transitioning;
    10         transitioning;
    12 
    11 
    13     var x = d3.scale.linear()
    12     var x = d3.scale.linear()