fix: 优化折线刻度

This commit is contained in:
tbphp
2025-07-19 18:45:09 +08:00
parent 84ce401370
commit a7f61e6bb7

View File

@@ -94,7 +94,7 @@ const visibleLabels = computed(() => {
return labels
.map((label, index) => ({ text: formatTimeLabel(label), index }))
.filter((_, i) => i % step === 0);
.filter((_, i) => i % step === 1);
});
// 位置计算函数
@@ -502,18 +502,6 @@ onMounted(() => {
}"
:style="{ opacity: isErrorDataset(dataset.label) ? 0.8 : 1 }"
/>
<!-- 零值点用灰色小点表示 -->
<circle
v-else
:cx="getXPosition(pointIndex)"
:cy="getYPosition(value)"
r="1.5"
fill="#d1d5db"
stroke="#d1d5db"
stroke-width="1"
class="data-point-zero"
opacity="0.6"
/>
</g>
</g>