Commit 3078dcb0f5ee26f085681a0bc0ae4224a63e9796
1 parent
2117088f
Exists in
master
and in
3 other branches
added dynamic user photo support
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
amadeus/static/js/charts/home.js
@@ -201,7 +201,9 @@ var charts = { | @@ -201,7 +201,9 @@ var charts = { | ||
201 | return radiusScale(d['count']); | 201 | return radiusScale(d['count']); |
202 | }) | 202 | }) |
203 | .append("svg:image") | 203 | .append("svg:image") |
204 | - .attr("xlink:href", '/uploads/users/estilocabelo.jpg') | 204 | + .attr("xlink:href", function(d){ |
205 | + return d['image']; | ||
206 | + }) | ||
205 | .attr("width",function(d){ | 207 | .attr("width",function(d){ |
206 | return radiusScale(d['count'])*2; | 208 | return radiusScale(d['count'])*2; |
207 | }) | 209 | }) |