Skip to content

Commit

Permalink
deploy: d172d1a
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 11, 2024
1 parent 7f33699 commit 92585d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pages/Leaderboard/TotalVotes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
export default {
components: { ChartJs },
template: `
<ChartJs :data="data" :plugins="{ legend: { position: 'left' } }" />
<ChartJs :data="data" :plugins="{ legend: { position: 'left' } }" style="width:1024px" />
`,
props:['results'],
setup(props) {
let results = props.results
results.sort((a,b) => b.value - a.value)
results = results.slice(0,10)
results = results.slice(0,20)

const datasets = results.map((x,i) => ({
label: x.displayName,
Expand Down
4 changes: 2 additions & 2 deletions pages/Leaderboard/TotalVotes1K.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
setup(props) {
let results = props.results
results.sort((a,b) => b.value - a.value)
results = results.slice(0,10)
results = results.slice(0,20)

const datasets = results.map((x,i) => ({
label: x.displayName,
Expand All @@ -32,7 +32,7 @@ export default {
},
title: {
display: true,
text: 'Total Votes for Top 1000 Questions',
text: 'Total Votes for Top 1K Most Voted Questions',
font: {
size: 20,
}
Expand Down
4 changes: 2 additions & 2 deletions pages/Leaderboard/WinRates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
export default {
components: { ChartJs },
template: `
<ChartJs :data="data" :plugins="{ legend: { position: 'left' } }" />
<ChartJs :data="data" :plugins="{ legend: { position: 'left' } }" style="width:1024px" />
`,
props:['results'],
setup(props) {
let results = props.results
results.sort((a,b) => b.value - a.value)
results = results.slice(0,10)
results = results.slice(0,20)

const datasets = results.map((x,i) => ({
label: x.displayName,
Expand Down

0 comments on commit 92585d5

Please sign in to comment.