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({ const options = {
responsive: true,
plugins: { plugins: {
title: { text: "提交结果的比例", display: true, font: { size: 20 } }, title: { text: "提交结果的比例", display: true, font: { size: 20 } },
}, },
}) }
</script> </script>
<template> <template>

View File

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