diff --git a/app.js b/app.js index 7533faa..d869336 100644 --- a/app.js +++ b/app.js @@ -12,6 +12,7 @@ logScale: true, xMetric: "ratio", yMetric: "normalized", + selectedModel: null, sort: { key: "intelligence", dir: -1 } }; @@ -26,6 +27,32 @@ function xValue(d) { return state.xMetric === "ratio" ? ratio(d) : correctedCost(d); } function yValue(d) { return state.yMetric === "normalized" ? normalized(d) : d.intelligence; } + function renderModelDetail(d) { + const el = q("modelDetail"); + if (!d) { + el.innerHTML = '
${d.provider} ${dataTag} ${statusTag}
+