equal
deleted
inserted
replaced
45 .value(function(d){ |
45 .value(function(d){ |
46 return Math.floor((((d.value - oldMin) * (newMax - newMin)) / (oldMax - oldMin)) + newMin); |
46 return Math.floor((((d.value - oldMin) * (newMax - newMin)) / (oldMax - oldMin)) + newMin); |
47 }) |
47 }) |
48 .round(false); |
48 .round(false); |
49 |
49 |
|
50 console.log('width', width, Ember.$('#' + self.get('elementId')).parent().width(), Ember.$('#' + self.get('elementId')).parent().parent().width(), Ember.$('#' + self.get('elementId')).parent().parent().parent().width()); |
50 var element = d3.select('#' + self.get('elementId')) |
51 var element = d3.select('#' + self.get('elementId')) |
51 .style("width", width + margin.left + margin.right + 'px') |
52 .style("width", width + margin.left + margin.right + 'px') |
52 .style("height", height + margin.bottom + margin.top + 'px') |
53 .style("height", height + margin.bottom + margin.top + 'px') |
53 .style("margin-left", -margin.left + "px") |
54 .style("margin-left", -margin.left + "px") |
54 .style("margin-right", -margin.right + "px") |
55 .style("margin-right", -margin.right + "px") |