十张对比图只差标题和取哪一列,原来各写一份 18 行的 computed。合成 barChart(label, key),key 限定为 ClassComparison 里值必为数字的字段, 渲染出的数据结构(labels / datasets / 配色 / borderWidth)逐字不变。 Chart.js 在本文件只注册了一次,没有重复。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oj.xuyue.cc
十张对比图只差标题和取哪一列,原来各写一份 18 行的 computed。合成 barChart(label, key),key 限定为 ClassComparison 里值必为数字的字段, 渲染出的数据结构(labels / datasets / 配色 / borderWidth)逐字不变。 Chart.js 在本文件只注册了一次,没有重复。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oj.xuyue.cc