Spaces:
Running
Running
Upload app.js
Browse files
app.js
CHANGED
|
@@ -222,6 +222,7 @@ function buildOpportunityCharts() {
|
|
| 222 |
};
|
| 223 |
|
| 224 |
// Histogram — fixed bins from 0 to 1 (score range)
|
|
|
|
| 225 |
const numBins = 20;
|
| 226 |
const binWidth = 1 / numBins; // 0.05 per bin
|
| 227 |
let bins = Array(numBins).fill(0);
|
|
|
|
| 222 |
};
|
| 223 |
|
| 224 |
// Histogram — fixed bins from 0 to 1 (score range)
|
| 225 |
+
const scores = all.map(h => h.sc);
|
| 226 |
const numBins = 20;
|
| 227 |
const binWidth = 1 / numBins; // 0.05 per bin
|
| 228 |
let bins = Array(numBins).fill(0);
|