Skip to content

Commit

Permalink
alternative color for active visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
gka authored and halfdan committed Feb 20, 2013
1 parent 5daf331 commit a5fd6d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/UserCountryMap/js/realtime-map.js
Expand Up @@ -176,7 +176,7 @@
})[r.referrerType];
}
// defu
else col = chroma.hsl(42 * age(r), Math.sqrt(age(r)), 0.50 - (1-age(r))*0.45);
else col = chroma.hsl(r.actions > 3 ? 10 : 42 * age(r), Math.sqrt(age(r)), 0.50 - (1-age(r))*0.45);
return col;
}

Expand Down Expand Up @@ -256,17 +256,17 @@
if (firstRun) { // if we run this the first time, we initialiize the map symbols
visitSymbols = map.addSymbols({
data: [],
type: Kartograph.LabeledBubble,
title: function(d) {
return visitRadius(d) > 15 ? d.actions : '';
type: Kartograph.Bubble,
/*title: function(d) {
return visitRadius(d) > 15 && d.actions > 1 ? d.actions : '';
},
labelattrs: {
fill: '#fff',
'font-weight': 'bold',
'font-size': 11,
stroke: false,
cursor: 'pointer'
},
},*/
sortBy: function(r) { return r.lastActionTimestamp; },
radius: visitRadius,
location: function(r) { return [r.longitude, r.latitude]; },
Expand Down

0 comments on commit a5fd6d9

Please sign in to comment.