fix(holiday): 拥挤度标签恢复两位小数
| | |
| | | |
| | | ## 最新(2026-10-06) |
| | | |
| | | ### 10-06:平均拥挤度标签恢复为 2 位小数 |
| | | |
| | | - **调整**:按用户要求,“普通国省道观测站平均拥挤度”不再单独使用 3 位小数,恢复为折线图默认 2 位。 |
| | | - **一致性**:由于折线图现已统一按显示标签精度绘制,10-04、10-05 的拥挤度都会显示并绘制为 `0.49`,不会再出现同标签不同高度。 |
| | | - **验证**:后端全量 `mvn -q test -f traffic-audit-server\pom.xml` 通过。 |
| | | |
| | | ### 10-06:折线图统一按显示标签精度绘制 |
| | | |
| | | - **口径(用户 2026-10-06 确认)**:同一张折线图中,同一个显示标签必须对应同一个点位高度;分析文字不得引用比该图显示精度更细的差异。 |
| | |
| | | blocks.add(new HolidayTrendWordService.ChartBlock( |
| | | prefix + "普通国省道观测站平均拥挤度", |
| | | chartService.lineChart("拥挤度", |
| | | Collections.singletonList(series("平均拥挤度", observation.congestion)), false, 3, 1100, 590), |
| | | Collections.singletonList(series("平均拥挤度", observation.congestion)), false, 1100, 590), |
| | | new HolidayTrendWordService.ImageSize(5268595L, 2821305L))); |
| | | |
| | | File template = resolveTemplateFile(); |