|
|
@ -13,7 +13,7 @@ function RadarChart(id, data, color, IDS, options) { |
|
|
|
levels: 3, //How many levels or inner circles should there be drawn
|
|
|
|
levels: 3, //How many levels or inner circles should there be drawn
|
|
|
|
maxValue: 1, //What is the value that the biggest circle will represent
|
|
|
|
maxValue: 1, //What is the value that the biggest circle will represent
|
|
|
|
labelFactor: 1.3, //How much farther than the radius of the outer circle should the labels be placed
|
|
|
|
labelFactor: 1.3, //How much farther than the radius of the outer circle should the labels be placed
|
|
|
|
wrapWidth: 60, //The number of pixels after which a label needs to be given a new line
|
|
|
|
wrapWidth: 100, //The number of pixels after which a label needs to be given a new line
|
|
|
|
opacityArea: 0.35, //The opacity of the area of the blob
|
|
|
|
opacityArea: 0.35, //The opacity of the area of the blob
|
|
|
|
dotRadius: 4, //The size of the colored circles of each blog
|
|
|
|
dotRadius: 4, //The size of the colored circles of each blog
|
|
|
|
opacityCircles: 0.1, //The opacity of the circles of each blob
|
|
|
|
opacityCircles: 0.1, //The opacity of the circles of each blob
|
|
|
@ -127,7 +127,7 @@ function RadarChart(id, data, color, IDS, options) { |
|
|
|
.attr("class", "legend") |
|
|
|
.attr("class", "legend") |
|
|
|
.style("font-size", "11px") |
|
|
|
.style("font-size", "11px") |
|
|
|
.attr("text-anchor", "middle") |
|
|
|
.attr("text-anchor", "middle") |
|
|
|
.attr("dy", "0.35em") |
|
|
|
.attr("dy", "0em") |
|
|
|
.attr("x", function(d, i){ return rScale(maxValue * cfg.labelFactor) * Math.cos(angleSlice*i - Math.PI/2); }) |
|
|
|
.attr("x", function(d, i){ return rScale(maxValue * cfg.labelFactor) * Math.cos(angleSlice*i - Math.PI/2); }) |
|
|
|
.attr("y", function(d, i){ return rScale(maxValue * cfg.labelFactor) * Math.sin(angleSlice*i - Math.PI/2); }) |
|
|
|
.attr("y", function(d, i){ return rScale(maxValue * cfg.labelFactor) * Math.sin(angleSlice*i - Math.PI/2); }) |
|
|
|
.text(function(d){return d}) |
|
|
|
.text(function(d){return d}) |
|
|
|