diff --git a/d3.chart.js b/d3.chart.js index 9a866a78..eb47c595 100644 --- a/d3.chart.js +++ b/d3.chart.js @@ -52,6 +52,7 @@ d3.chart.bullet = function() { .enter().append('svg:rect') .attr('class', 'range'); chart.selectAll('rect.range') + .transition() .attr('width', scale) .attr('height', height) .attr('style', function(d, i) { return 'fill:' + rangeColor(i) }); @@ -60,6 +61,7 @@ d3.chart.bullet = function() { .enter().append('svg:rect') .attr('class', 'measure'); chart.selectAll('rect.measure') + .transition() .attr('width', scale) .attr('height', height / 3) .attr('y', height / 3) @@ -71,6 +73,7 @@ d3.chart.bullet = function() { .attr('stroke', '#000') .attr('stroke-width', '2px') chart.selectAll('line.marker') + .transition() .attr('x1', scale) .attr('x2', scale) .attr('y1', height/6) @@ -84,6 +87,7 @@ d3.chart.bullet = function() { .attr('stroke', '#666') .attr('stroke-width', '.5px') this.selectAll('line.rule') + .transition() .attr('x1', scale) .attr('x2', scale) .attr('y1', height) @@ -96,9 +100,10 @@ d3.chart.bullet = function() { .attr('text-anchor', 'middle') .attr('dy', '1em') this.selectAll('text.tick') + .text(tickFormat) + .transition() .attr('x', scale) .attr('y', height * 7/6) - .text(tickFormat) } var maxlength = function(l) { diff --git a/d3.chart.min.js b/d3.chart.min.js index 593cf12b..d52cb17d 100644 --- a/d3.chart.min.js +++ b/d3.chart.min.js @@ -1 +1 @@ -(function(){d3.chart={},d3.chart.bullet=function(){var a="left",b=function(a){return a.ranges},c=function(a){return a.markers},d=function(a){return a.measures},e,f=null,g=800,h=30,i=d3.scale.linear(),j=d3.scale.linear(),k=d3.scale.linear(),l=d3.format(",.0f"),m=function(a){for(var b=0,c=a.length;b