fix: update layout titles to object format for consistency
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 3m32s
/ lint-build-and-check (push) Successful in 5m50s
/ surge (push) Successful in 2m51s
/ playwright (push) Failing after 1m45s
/ cleanup_surge (push) Has been skipped

This commit is contained in:
严浩
2025-06-10 00:44:57 +08:00
parent 65cd87264f
commit 0883cb8df5

View File

@ -18,32 +18,32 @@ const readyPromise = new Promise<void>((resolve) => {
});
const 频谱瀑布图Layout = {
title: '频谱瀑布图',
title: { text: '频谱瀑布图' },
xaxis: {
title: '频率 (Hz)',
title: { text: '频率 (Hz)' },
// range: [0, 22_050],
showgrid: false,
tickformat: ',d', // 设置为带逗号的整数格式 (推荐,更易读)
},
yaxis: {
title: '时间步',
title: { text: '时间步' },
showgrid: false,
tickformat: ',d', // 设置为带逗号的整数格式 (推荐,更易读)
},
margin: { l: 60, r: 40, b: 40, t: 60 },
};
} satisfies Partial<import('plotly.js-dist-min').Layout>;
const 频谱图Layout = {
title: '频谱图',
title: { text: '频谱图' },
xaxis: {
title: '频率 (Hz)',
title: { text: '频率 (Hz)' },
// range: [0, 22_050],
showgrid: true,
gridcolor: '#eee',
tickformat: ',d', // 设置为带逗号的整数格式 (推荐,更易读)
},
yaxis: {
title: '幅度 (dB)',
title: { text: '幅度 (dB)' },
showgrid: true, // 显示网格线
gridcolor: '#eee',
tickformat: ',d', // 设置为带逗号的整数格式 (推荐,更易读)