diff --git a/client/src/components/circle/SimpleCircleDiagram.vue b/client/src/components/circle/SimpleCircleDiagram.vue index bdfb7f9a..7b7b254c 100644 --- a/client/src/components/circle/SimpleCircleDiagram.vue +++ b/client/src/components/circle/SimpleCircleDiagram.vue @@ -28,7 +28,9 @@ export default { console.log(this.pieData) var data = this.pieData; - var width = this.width, height = this.height, radius = Math.min(width, height) / 2.5 + const width = this.width + const height = this.height + const radius = Math.min(width, height) / 2.5 var svg = d3.select(this.$el) @@ -47,7 +49,7 @@ export default { // Generate the arcs var arc = d3 .arc() - .innerRadius(radius / 2.5) + .innerRadius(radius / 2) .padAngle(12 / 360) .outerRadius(radius); @@ -60,28 +62,21 @@ export default { //Draw arc paths arcs.append("path") - .attr("fill", color) .attr("d", arc) } } - - + diff --git a/client/src/views/LearningPathView.vue b/client/src/views/LearningPathView.vue index d34f711a..d272f49f 100644 --- a/client/src/views/LearningPathView.vue +++ b/client/src/views/LearningPathView.vue @@ -74,7 +74,7 @@ export default {