cms/app-client/app/components/visu-langues.js
changeset 95 f7ab931581af
parent 93 f7223e2f3023
child 123 4c97e9da1416
--- a/cms/app-client/app/components/visu-langues.js	Thu Jan 21 21:07:02 2016 +0100
+++ b/cms/app-client/app/components/visu-langues.js	Fri Jan 22 10:35:52 2016 +0100
@@ -3,9 +3,8 @@
 export default Ember.Component.extend({
   didInsertElement: function(){
     var _this = this;
-
     var margin = {top: 20, right: 0, bottom: 0, left: 0},
-        width = 560,
+        width = Ember.$("#chart_div").width(),
         height = 600 - margin.top - margin.bottom,
         formatNumber = d3.format(",d"),
         transitioning;