This commit is contained in:
2023-02-11 16:07:52 +08:00
parent 0b4cad6bbe
commit 1162e51499
2 changed files with 4 additions and 5 deletions

View File

@@ -25,12 +25,11 @@ const data = computed(() => {
}
})
const options = ref({
responsive: true,
const options = {
plugins: {
title: { text: "提交结果的比例", display: true, font: { size: 20 } },
},
})
}
</script>
<template>

View File

@@ -68,7 +68,7 @@ const data = computed(() => ({
],
}))
const options = ref({
const options = {
plugins: {
title: {
text: "全校前十名的用户(不包括超管)",
@@ -76,7 +76,7 @@ const options = ref({
font: { size: 20 },
},
},
})
}
</script>
<template>
<Bar class="chart" :data="data" :options="options" />