Skip to content

Commit aad4130

Browse files
committed
feat: ferq add line 0.5 width
1 parent 2eb380c commit aad4130

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/pages/Feature/D3/Frequency.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ const Frequency = () => {
560560
return leftPos + (rightPos - leftPos) * progress;
561561
};
562562

563-
const targetFrequencyRange = [1000000, 140000000];
563+
const targetFrequencyRange = [1900000, 140000000];
564564
// const targetFrequencyRange: any = [];
565565

566566
// 如果是第一个类型组,添加频率标记
@@ -581,17 +581,17 @@ const Frequency = () => {
581581
.style('pointer-events', 'none');
582582

583583
// 添加标记线
584-
// [startX, endX].forEach((x) => {
585-
// frequencyMarkerGroup
586-
// .append('line')
587-
// .attr('x1', x) // 从顶部开始
588-
// .attr('y1', 0) // 从顶部开始
589-
// .attr('x2', x) // 到底部结束
590-
// .attr('y2', totalHeight - margin.bottom) // 到底部结束
591-
// .attr('stroke', 'green')
592-
// .attr('stroke-width', 1)
593-
// .style('pointer-events', 'none');
594-
// });
584+
[startX, endX].forEach((x) => {
585+
frequencyMarkerGroup
586+
.append('line')
587+
.attr('x1', x) // 从顶部开始
588+
.attr('y1', 0) // 从顶部开始
589+
.attr('x2', x) // 到底部结束
590+
.attr('y2', totalHeight - margin.bottom) // 到底部结束
591+
.attr('stroke', 'green')
592+
.attr('stroke-width', 0.5)
593+
.style('pointer-events', 'none');
594+
});
595595

596596
// 添加频率标签
597597
// [

0 commit comments

Comments
 (0)