Spaces:
Running
Running
Codex commited on
Commit 路
2e24dfe
1
Parent(s): 88eed65
Expand scatter plot point tooltip
Browse files
app.js
CHANGED
|
@@ -783,6 +783,9 @@ function renderOverviewPlot(rows) {
|
|
| 783 |
org: modelOrg(row.model) || "Unspecified",
|
| 784 |
sizeLabel: modelSize(row.model),
|
| 785 |
size: parseModelSize(modelSize(row.model)),
|
|
|
|
|
|
|
|
|
|
| 786 |
rank: row.overall
|
| 787 |
}))
|
| 788 |
.filter((row) => finite(row.size) && row.size > 0 && finite(row.rank));
|
|
@@ -820,7 +823,15 @@ function renderOverviewPlot(rows) {
|
|
| 820 |
}).join("");
|
| 821 |
const dots = points.map((p) => `
|
| 822 |
<g class="plot-point" transform="translate(${x(p.size).toFixed(1)} ${y(p.rank).toFixed(1)})">
|
| 823 |
-
<title>${escapeHtml(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 824 |
<circle r="5.5" fill="${color(p.org)}"></circle>
|
| 825 |
</g>
|
| 826 |
`).join("");
|
|
|
|
| 783 |
org: modelOrg(row.model) || "Unspecified",
|
| 784 |
sizeLabel: modelSize(row.model),
|
| 785 |
size: parseModelSize(modelSize(row.model)),
|
| 786 |
+
pointwise: row.pointwise,
|
| 787 |
+
ic: row.ic,
|
| 788 |
+
portfolio: row.portfolio,
|
| 789 |
rank: row.overall
|
| 790 |
}))
|
| 791 |
.filter((row) => finite(row.size) && row.size > 0 && finite(row.rank));
|
|
|
|
| 823 |
}).join("");
|
| 824 |
const dots = points.map((p) => `
|
| 825 |
<g class="plot-point" transform="translate(${x(p.size).toFixed(1)} ${y(p.rank).toFixed(1)})">
|
| 826 |
+
<title>${escapeHtml([
|
| 827 |
+
`Model: ${p.label}`,
|
| 828 |
+
`Org: ${p.org}`,
|
| 829 |
+
`Model size: ${p.sizeLabel}`,
|
| 830 |
+
`Point rank: ${fmt(p.pointwise, finite(p.pointwise) && p.pointwise % 1 ? 1 : 0)}`,
|
| 831 |
+
`Ranking rank: ${fmt(p.ic, finite(p.ic) && p.ic % 1 ? 1 : 0)}`,
|
| 832 |
+
`Decision rank: ${fmt(p.portfolio, finite(p.portfolio) && p.portfolio % 1 ? 1 : 0)}`,
|
| 833 |
+
`Rank sum: ${fmt(p.rank, p.rank % 1 ? 1 : 0)}`
|
| 834 |
+
].join("\\n"))}</title>
|
| 835 |
<circle r="5.5" fill="${color(p.org)}"></circle>
|
| 836 |
</g>
|
| 837 |
`).join("");
|