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:
@@ -31,7 +31,7 @@ const PePegChart: React.FC<PePegChartProps> = ({ data }) => {
|
|||||||
</div>`;
|
</div>`;
|
||||||
|
|
||||||
params.forEach((item: any) => {
|
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">
|
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:flex;align-items:center">
|
||||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:${item.color};margin-right:8px"></span>
|
<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,
|
...BASE_CHART_CONFIG.yAxis,
|
||||||
type: 'value',
|
type: 'value',
|
||||||
name: 'PEG',
|
name: 'PEG(倍)',
|
||||||
nameTextStyle: { color: CHART_COLORS.peg },
|
nameTextStyle: { color: CHART_COLORS.peg },
|
||||||
axisLine: { lineStyle: { color: CHART_COLORS.peg } },
|
axisLine: { lineStyle: { color: CHART_COLORS.peg } },
|
||||||
axisLabel: { color: CHART_COLORS.peg },
|
axisLabel: { color: CHART_COLORS.peg },
|
||||||
|
|||||||
Reference in New Issue
Block a user