feat(wheel): get subjets from app

This commit is contained in:
2020-01-13 23:24:08 +01:00
parent 13ea057544
commit 48d42178e3
2 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
<v-content>
<SpeechlessSubject @inputData="updateSubjects"/>
<SpinningWheel/>
<SpinningWheel :subjects="subjects"/>
</v-content>
</v-app>
</template>

View File

@@ -12,7 +12,7 @@
data: function () {
return {
container: null,
dataSpin : [
subjects : [
{Nom:"Un film", Lien:""},
{Nom:"Une serie", Lien:""},
{Nom:"Un logiciel", Lien:""}
@@ -20,8 +20,8 @@
}
},
methods : {
getDataSpin(){
return this.dataSpin;
getSubjects(){
return this.subjects;
},
removeGraph(){
d3.select('#chart svg').remove()
@@ -36,7 +36,7 @@
oldrotation = 0,
picked = 100000,
color = d3.scale.category20();
var data = this.getDataSpin();
var data = this.getSubjects();
var svg = d3.select('#chart')
.append("svg")
.data([data])