This commit is contained in:
syuilo
2023-01-02 19:58:51 +09:00
parent 70ce129478
commit f598a876eb
11 changed files with 8 additions and 92 deletions

View File

@@ -68,7 +68,6 @@ onMounted(async () => {
const raw = await os.api('charts/ap-request', { limit: chartLimit, span: 'day' });
const gridColor = defaultStore.state.darkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)';
const vLineColor = defaultStore.state.darkMode ? 'rgba(255, 255, 255, 0.2)' : 'rgba(0, 0, 0, 0.2)';
const succColor = '#87e000';
const failColor = '#ff4400';
@@ -76,9 +75,6 @@ onMounted(async () => {
const succMax = Math.max(...raw.deliverSucceeded);
const failMax = Math.max(...raw.deliverFailed);
// フォントカラー
Chart.defaults.color = getComputedStyle(document.documentElement).getPropertyValue('--fg');
new Chart(chartEl, {
type: 'line',
data: {
@@ -133,8 +129,6 @@ onMounted(async () => {
},
grid: {
display: true,
color: gridColor,
borderColor: 'rgb(0, 0, 0, 0)',
},
ticks: {
display: true,
@@ -154,8 +148,6 @@ onMounted(async () => {
suggestedMax: 10,
grid: {
display: true,
color: gridColor,
borderColor: 'rgb(0, 0, 0, 0)',
},
ticks: {
display: true,
@@ -174,7 +166,6 @@ onMounted(async () => {
hoverBorderWidth: 2,
},
},
animation: false,
plugins: {
legend: {
display: false,
@@ -232,8 +223,6 @@ onMounted(async () => {
},
grid: {
display: false,
color: gridColor,
borderColor: 'rgb(0, 0, 0, 0)',
},
ticks: {
display: false,
@@ -252,8 +241,6 @@ onMounted(async () => {
suggestedMax: 10,
grid: {
display: true,
color: gridColor,
borderColor: 'rgb(0, 0, 0, 0)',
},
},
},
@@ -267,7 +254,6 @@ onMounted(async () => {
hoverBorderWidth: 2,
},
},
animation: false,
plugins: {
legend: {
display: false,