diff --git a/__pycache__/run.cpython-38.pyc b/__pycache__/run.cpython-38.pyc index 2056969..57839a2 100644 Binary files a/__pycache__/run.cpython-38.pyc and b/__pycache__/run.cpython-38.pyc differ diff --git a/frontend/src/components/VotingResults.vue b/frontend/src/components/VotingResults.vue index 07094a4..c07f7eb 100644 --- a/frontend/src/components/VotingResults.vue +++ b/frontend/src/components/VotingResults.vue @@ -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'},