Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

total first

  • Loading branch information...
commit 539972d73d006d655dd117fb14a0ae6df212bdcd 1 parent 874b76c
@tarekziade tarekziade authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 monolith/web/media/lib/monolith.js
View
6 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 Collaborator
cvan added a note

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

@tarekziade Owner

ok thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
}
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;
Please sign in to comment.
Something went wrong with that request. Please try again.