|
116 | 116 | tooltip.textContent = (
|
117 | 117 | fmtDate(new Date(u.data[0][dataIdx] * 1e3)) + " - " +
|
118 | 118 | commits[dataIdx][1].slice(0,10) + "\n" +
|
119 |
| - u.series[seriesIdx].label |
| 119 | + u.series[seriesIdx].label + ": " + |
| 120 | + u.data[seriesIdx][dataIdx]/1e9 + " seconds" |
120 | 121 | );
|
121 | 122 | }
|
122 | 123 |
|
|
228 | 229 | // https://sashamaps.net/docs/resources/20-colors/
|
229 | 230 | let colors = [
|
230 | 231 | '#e6194b', '#3cb44b', '#ffe119', '#4363d8', '#f58231',
|
231 |
| - '#911eb4', '#46f0f0', '#f032e6', '#bcf60c', '#fabebe', |
232 |
| - '#008080', '#e6beff', '#9a6324', '#fffac8', '#800000', |
233 |
| - '#aaffc3', '#808000', '#ffd8b1', '#000075', '#808080', |
234 |
| - '#ffffff', '#000000' |
| 232 | + '#911eb4', '#46f0f0', '#f032e6', '#a09b13', '#0ab0be', |
| 233 | + 'red', 'green', 'blue', 'purple' |
235 | 234 | ];
|
236 | 235 | let crates = Object.keys(data.by_crate).sort();
|
237 | 236 | for (let crate of crates) {
|
238 | 237 | plotData.push(data.by_crate[crate]);
|
239 | 238 |
|
240 | 239 | seriesOpts.push({
|
241 | 240 | label: crate,
|
242 |
| - stroke: colors.pop(), |
| 241 | + stroke: colors.length ? colors.pop() : 'black', |
243 | 242 | });
|
244 | 243 | }
|
245 | 244 |
|
246 | 245 | let plotOpts = genPlotOpts({
|
247 |
| - title: "Bootstrap timings for crates >= 10 seconds", |
| 246 | + title: "Bootstrap timings for crates >= 30 seconds", |
248 | 247 | width: Math.floor(window.innerWidth) - 16,
|
249 | 248 | height: window.innerHeight * 0.75,
|
250 | 249 | yAxisLabel: "",
|
|
0 commit comments