Skip to content

Commit 4a5ba2d

Browse files
committed
feat: add freq tree
1 parent aad4130 commit 4a5ba2d

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/pages/Feature/D3/Frequency.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -594,20 +594,20 @@ const Frequency = () => {
594594
});
595595

596596
// 添加频率标签
597-
// [
598-
// { x: startX, freq: targetFrequencyRange[0], align: 'start' },
599-
// { x: endX, freq: targetFrequencyRange[1], align: 'end' }
600-
// ].forEach(({ x, freq, align }) => {
601-
// mainGroup
602-
// .append('text')
603-
// .attr('x', x)
604-
// .attr('y', -margin.top - 10)
605-
// .attr('text-anchor', align)
606-
// .attr('fill', 'green')
607-
// .attr('font-size', '12px')
608-
// .text(formatFrequency(freq))
609-
// .style('pointer-events', 'none');
610-
// });
597+
[
598+
{ x: startX, freq: targetFrequencyRange[0], align: 'start' },
599+
{ x: endX, freq: targetFrequencyRange[1], align: 'end' },
600+
].forEach(({ x, freq, align }) => {
601+
mainGroup
602+
.append('text')
603+
.attr('x', x)
604+
.attr('y', -margin.top - 10)
605+
.attr('text-anchor', align)
606+
.attr('fill', 'green')
607+
.attr('font-size', '12px')
608+
.text(formatFrequency(freq))
609+
.style('pointer-events', 'none');
610+
});
611611
}
612612
}
613613

0 commit comments

Comments
 (0)