Commit 6d5664a9 authored by Jan Dillenberger's avatar Jan Dillenberger

Modify radar_chart scale

parent 515ef993
Pipeline #21972 failed with stage
in 124 minutes and 22 seconds
......@@ -29,9 +29,9 @@ const d3 = Object.assign({}, {
let margins = {
top: 20,
right: 10,
bottom: 35,
left: 10
right: 50,
bottom: 50,
left: 50
}
function computeData(params, baseSize) {
......@@ -124,7 +124,7 @@ function drawRadarGroup(g, params, baseSize, groupName) {
.data(d => d)
.enter().append('circle')
.attr('class', 'scoreCircle')
.attr('r', 7)
.attr('r', rScale(0.2))
.attr('cx', (d, i) => rScale((d[entityScoreKey] / d.questionCount) ) * Math.cos((Math.PI * 2 / params.length) * i - Math.PI / 2))
.attr('cy', (d, i) => rScale((d[entityScoreKey] / d.questionCount) ) * Math.sin((Math.PI * 2 / params.length) * i - Math.PI / 2))
.style('fill', color)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment