mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Fix graph's y range
This commit is contained in:
parent
607fa53a27
commit
ac3e9f9602
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ d3.json( pool_url+'?history=1',
|
||||||
stats_vcloud_pool__data__keys.sort().map(
|
stats_vcloud_pool__data__keys.sort().map(
|
||||||
function( pool ) {
|
function( pool ) {
|
||||||
var x = d3.scale.linear().domain( [ 0, 500 ] ).range( [ 0, pool_width ] );
|
var x = d3.scale.linear().domain( [ 0, 500 ] ).range( [ 0, pool_width ] );
|
||||||
var y = d3.scale.linear().domain( [ parseInt( stats_vcloud_pool__data__live[ pool ][ 'size' ] ), 0 ] ).range( [ 0, pool_height ] );
|
var y = d3.scale.linear().domain( [ parseInt( stats_vcloud_pool__data__live[ pool ][ 'size' ] ), 0 ] ).range( [ 0, pool_height - 15 ] );
|
||||||
|
|
||||||
var area = d3.svg.area()
|
var area = d3.svg.area()
|
||||||
.interpolate( 'basis' )
|
.interpolate( 'basis' )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue