Permalink
Browse files

Added a landing page for /visualize/histogram

  • Loading branch information...
1 parent 516264d commit 1278bdf04b1934d01ecbc1838297fa2d1f1624c3 @ahw committed Dec 22, 2012
Showing with 18 additions and 0 deletions.
  1. +4 −0 routes/visualize.js
  2. +14 −0 views/histogram-home.jade
View
@@ -26,6 +26,10 @@ module.exports = function(app) {
res.render('visualize');
});
+ app.get('/visualize/histogram', function(req, res) {
+ res.render('histogram-home');
+ });
+
app.get('/visualize/histogram/:name/:bucketSizeMinutes', checkAuth, function(req, res) {
var bucketSizeMinutes = parseInt(req.params.bucketSizeMinutes);
console.log('bucketSizeMinutes = ' + bucketSizeMinutes);
View
@@ -0,0 +1,14 @@
+extends layout
+block content
+
+ h1(style='color:#aaa') histograms
+
+ p Create histograms of the form
+ span(style='font-weight:bold; font-family:monospace') /eventname/bucketsize
+ , where
+ span(style='font-weight:bold; font-family:monospace') bucketsize
+ is a value in minutes.
+
+ h2 Examples
+ h2: a(href='/visualize/histogram/sleep/15') sleep/15
+ h2: a(href='/visualize/histogram/commute/5') commute/5

0 comments on commit 1278bdf

Please sign in to comment.