diff --git a/docs/radar.js b/docs/radar.js index c19184fc..e7e7b2b5 100644 --- a/docs/radar.js +++ b/docs/radar.js @@ -117,8 +117,8 @@ function radar_visualization(config) { y: 15 * quadrants[quadrant].factor_y }; var cartesian_max = { - x: rings[3].radius * quadrants[quadrant].factor_x, - y: rings[3].radius * quadrants[quadrant].factor_y + x: rings[rings.length - 1].radius * quadrants[quadrant].factor_x, + y: rings[rings.length - 1].radius * quadrants[quadrant].factor_y }; return { clipx: function(d) { @@ -157,7 +157,7 @@ function radar_visualization(config) { var segmented = new Array(4); for (var quadrant = 0; quadrant < 4; quadrant++) { segmented[quadrant] = new Array(4); - for (var ring = 0; ring < 4; ring++) { + for (var ring = 0; ring < rings.length; ring++) { segmented[quadrant][ring] = []; } } @@ -169,7 +169,7 @@ function radar_visualization(config) { // assign unique sequential id to each entry var id = 1; for (var quadrant of [2,3,1,0]) { - for (var ring = 0; ring < 4; ring++) { + for (var ring = 0; ring < rings.length; ring++) { var entries = segmented[quadrant][ring]; entries.sort(function(a,b) { return a.label.localeCompare(b.label); }) for (var i=0; i