3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

d3.max domain [#216][Untested]

This commit is contained in:
Sam Nicholls 2013-01-25 11:05:40 +00:00
parent bc124e50c5
commit 26a10513e0

View File

@ -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")