Permalink
Browse files

total first

  • Loading branch information...
1 parent 874b76c commit 539972d73d006d655dd117fb14a0ae6df212bdcd @tarekziade tarekziade committed Mar 1, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 monolith/web/media/lib/monolith.js
@@ -342,11 +342,11 @@ MonolithBase.extend("MonolithAggregate",
// XXX display the day, week or month in the label...
$.each(json.facets.facet_histo.entries, function(i, item) {
// XXX why count vs total ?
- if (item.hasOwnProperty("count")) {
- var line = {x: x, y: parseInt(item.count), date: item.time};
+ if (item.hasOwnProperty("total")) {
+ var line = {x: x, y: parseInt(item.total), date: item.time};
@cvan

cvan Mar 1, 2013

Member

do parseInt(item.total, 10) or +item.total

@tarekziade

tarekziade Mar 1, 2013

Contributor

ok thx

}
else {
- var line = {x: x, y: parseInt(item.total), date: item.time};
+ var line = {x: x, y: parseInt(item.count), date: item.time};
}
data.push(line);
x += 1;

0 comments on commit 539972d

Please sign in to comment.