diff options
author | Richard Wall <richard@largo> | 2011-01-01 15:43:03 +0000 |
---|---|---|
committer | Richard Wall <richard@largo> | 2011-01-01 15:43:03 +0000 |
commit | 91d9735a448bb519fd5683bfef9635fc77ac7008 (patch) | |
tree | 24dd496a205ead2efbb6700949ab5250be6b6e69 | |
parent | a48dd7a95f71869a367a3f32787660bb0a88eadb (diff) |
fix an issue with DS indices
-rw-r--r-- | jarmon/jarmon.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index ccfbc8e..5952aa2 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -493,6 +493,11 @@ jarmon.Chart.prototype.setup = function() { for(var j=0; j<recipe['data'].length; j++) { var rrd = recipe['data'][j][0]; var ds = recipe['data'][j][1]; + // Test for integer DS index as opposed to DS name + var dsi = parseInt(ds); + if(ds.toString() == dsi.toString()) { + ds = dsi; + } var label = recipe['data'][j][2]; var unit = recipe['data'][j][3]; |