fix(PePegChart): PEG 也添加单位"倍"

- Tooltip: PE 和 PEG 都显示单位"倍"
- Y 轴: PEG 轴名称改为 "PEG(倍)"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-29 10:32:53 +08:00
parent 8f97efa15d
commit 596504d70c

View File

@@ -31,7 +31,7 @@ const PePegChart: React.FC<PePegChartProps> = ({ data }) => {
</div>`;
params.forEach((item: any) => {
const unit = item.seriesName === 'PE' ? '倍' : '';
const unit = '倍'; // PE 和 PEG 都是倍数单位
html += `<div style="display:flex;justify-content:space-between;align-items:center;margin:4px 0">
<span style="display:flex;align-items:center">
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:${item.color};margin-right:8px"></span>
@@ -80,7 +80,7 @@ const PePegChart: React.FC<PePegChartProps> = ({ data }) => {
{
...BASE_CHART_CONFIG.yAxis,
type: 'value',
name: 'PEG',
name: 'PEG(倍)',
nameTextStyle: { color: CHART_COLORS.peg },
axisLine: { lineStyle: { color: CHART_COLORS.peg } },
axisLabel: { color: CHART_COLORS.peg },