From 2b4336c42f70703a1b6a7af2666fc1e86c507ddb Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Wed, 8 Jun 2022 17:40:51 +0200 Subject: [PATCH] fixed styling --- .../components/circle/SimpleCircleDiagram.vue | 23 ++++++++----------- client/src/views/LearningPathView.vue | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) 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 {
{{topic.title}}
-