Angelos Chatzimparmpas 4 years ago
parent 5a3f56824b
commit 3304792b6b
  1. BIN
      __pycache__/run.cpython-38.pyc
  2. 32
      frontend/src/components/VotingResults.vue

Binary file not shown.

@ -33,22 +33,22 @@ export default {
var info = JSON.parse(this.Info[13])
var dataLoc = []
dataLoc[0] = Math.floor(JSON.parse(this.FinalResultsforPlot[0])*100)
dataLoc[1] = Math.floor(JSON.parse(this.FinalResultsforPlot[1])*100)
dataLoc[2] = Math.floor(JSON.parse(this.FinalResultsforPlot[2])*100)
dataLoc[3] = Math.floor(JSON.parse(this.FinalResultsforPlot[3])*100)
dataLoc[4] = Math.floor(JSON.parse(this.FinalResultsforPlot[4])*100)
dataLoc[5] = Math.floor(JSON.parse(this.FinalResultsforPlot[5])*100)
dataLoc[6] = Math.floor(JSON.parse(this.FinalResultsforPlot[6])*100)
dataLoc[7] = Math.floor(JSON.parse(this.FinalResultsforPlot[7])*100)
dataLoc[8] = Math.floor(JSON.parse(this.FinalResultsforPlot[8])*100)
dataLoc[9] = Math.floor(JSON.parse(this.FinalResultsforPlot[9])*100)
dataLoc[10] = Math.floor(JSON.parse(this.FinalResultsforPlot[10])*100)
dataLoc[11] = Math.floor(JSON.parse(this.FinalResultsforPlot[11])*100)
dataLoc[12] = Math.floor(JSON.parse(this.FinalResultsforPlot[12])*100)
dataLoc[13] = Math.floor(JSON.parse(this.FinalResultsforPlot[13])*100)
dataLoc[14] = Math.floor(JSON.parse(this.FinalResultsforPlot[14])*100)
dataLoc[15] = Math.floor(JSON.parse(this.FinalResultsforPlot[15])*100)
dataLoc[0] = Math.round(JSON.parse(this.FinalResultsforPlot[0])*100)
dataLoc[1] = Math.round(JSON.parse(this.FinalResultsforPlot[1])*100)
dataLoc[2] = Math.round(JSON.parse(this.FinalResultsforPlot[2])*100)
dataLoc[3] = Math.round(JSON.parse(this.FinalResultsforPlot[3])*100)
dataLoc[4] = Math.round(JSON.parse(this.FinalResultsforPlot[4])*100)
dataLoc[5] = Math.round(JSON.parse(this.FinalResultsforPlot[5])*100)
dataLoc[6] = Math.round(JSON.parse(this.FinalResultsforPlot[6])*100)
dataLoc[7] = Math.round(JSON.parse(this.FinalResultsforPlot[7])*100)
dataLoc[8] = Math.round(JSON.parse(this.FinalResultsforPlot[8])*100)
dataLoc[9] = Math.round(JSON.parse(this.FinalResultsforPlot[9])*100)
dataLoc[10] = Math.round(JSON.parse(this.FinalResultsforPlot[10])*100)
dataLoc[11] = Math.round(JSON.parse(this.FinalResultsforPlot[11])*100)
dataLoc[12] = Math.round(JSON.parse(this.FinalResultsforPlot[12])*100)
dataLoc[13] = Math.round(JSON.parse(this.FinalResultsforPlot[13])*100)
dataLoc[14] = Math.round(JSON.parse(this.FinalResultsforPlot[14])*100)
dataLoc[15] = Math.round(JSON.parse(this.FinalResultsforPlot[15])*100)
var data = [
{'countries': 'Active Accuracy', 'infant.mortality': dataLoc[0], 'gdp': dataLoc[1], 'group': 1, 'color': '#1f78b4'},

Loading…
Cancel
Save