Permalink
Browse files

display the count

  • Loading branch information...
1 parent b59cbd3 commit 874b76cd69a45e4028113d42290869d17be6e4f6 @tarekziade tarekziade committed Feb 28, 2013
Showing with 12 additions and 7 deletions.
  1. +5 −6 monolith/web/media/index.html
  2. +7 −1 monolith/web/media/lib/monolith.js
@@ -43,7 +43,7 @@
</div> <!-- end navbar-->
-<dashboard server="http://0.0.0.0:6543">
+<dashboard server="http://166.78.8.5:6543">
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
@@ -68,12 +68,11 @@
<div class="span12">
<div class="span6">
-<!--
- <chart title="Downloads"
+ <chart title="Daily Installs (All Apps)"
id="chart3"
- fields="downloads_count"
- type="series"/>
--->
+ fields="installs_count"
+ type="aggregate"
+ interval="day"/>
</div>
<div class="span6">
<!--
@@ -341,7 +341,13 @@ MonolithBase.extend("MonolithAggregate",
// XXX display the day, week or month in the label...
$.each(json.facets.facet_histo.entries, function(i, item) {
- var line = {x: x, y: parseInt(item.total), date: item.time};
+ // XXX why count vs total ?
+ if (item.hasOwnProperty("count")) {
+ var line = {x: x, y: parseInt(item.count), date: item.time};
+ }
+ else {
+ var line = {x: x, y: parseInt(item.total), date: item.time};
+ }
data.push(line);
x += 1;
});

0 comments on commit 874b76c

Please sign in to comment.