Skip to content

Commit

Permalink
ahora hace bien la animación :D : references #16
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmacias95 committed Mar 13, 2017
1 parent 6e92cf0 commit ea00fd6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}, function(error, data) {
if (error) throw error;
svg.attr("width", data_w*data.length);
x.rangeRound([0, data_w*data.length]);
x.rangeRound([data_w*data.length,0]);
x.domain(d3.extent(data, function(d) { return d.date; }));
y.domain(d3.extent(data, function(d) { return d.retweet; }));

Expand Down Expand Up @@ -74,7 +74,7 @@
.attr("stroke", "limegreen")
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("stroke-width", 1.5)
.attr("stroke-width", 2)
.attr("d", line);


Expand All @@ -84,7 +84,7 @@
.attr("stroke", "firebrick")
.attr("stroke-linejoin", "round")
.attr("stroke-linecap", "round")
.attr("stroke-width", 1.5)
.attr("stroke-width", 2)
.attr("d", line1);

var totalLength = path.node().getTotalLength();
Expand Down

0 comments on commit ea00fd6

Please sign in to comment.