From 26a10513e03428eb1eba6f2ab4fd739390c8c5d7 Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Fri, 25 Jan 2013 11:05:40 +0000 Subject: [PATCH] d3.max domain [#216][Untested] --- views/users/users.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/users/users.jade b/views/users/users.jade index 3f9b3bc..f89ef18 100644 --- a/views/users/users.jade +++ b/views/users/users.jade @@ -21,7 +21,7 @@ block content .range([0,w]); var y = d3.scale.linear() - .domain([0,100]) + .domain([0,d3.max([#{chanFreq}])]) .rangeRound([0,h]); var chart = d3.select($("#chanFreqChart")[0]).append("svg")