1 tr
.graphing
.Radar = function (svg
, size
, radar
) {
4 svg
.attr('width', size
).attr('height', size
);
7 return Math
.round(size
/2);
10 function plotLines() {
16 .attr('stroke-width', 14);
23 .attr('stroke-width', 14);
26 function plotCircles(cycles
) {
29 increment
= Math
.round(center() / cycles
.length
);
31 cycles
.forEach(function (cycle
, i
) {
35 .attr('r', center() - increment
* i
);
39 function plotTexts(cycles
) {
42 increment
= Math
.round(center() / cycles
.length
);
44 cycles
.forEach(function (cycle
, i
) {
46 .attr('y', center() + 4)
47 .attr('x', (i
* increment
) + 10)
51 .attr('y', center() + 4)
52 .attr('x', size
- (i
* increment
) - 10)
53 .attr('text-anchor', 'end')
58 self
.plot = function () {
59 var cycles
= radar
.cycles().reverse();