diff options
Diffstat (limited to 'website/app.js')
-rw-r--r-- | website/app.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/website/app.js b/website/app.js index 8f9aef7c0..3281cd3cf 100644 --- a/website/app.js +++ b/website/app.js @@ -120,7 +120,7 @@ export async function main() { const syscallCountColumns = createSyscallCountColumns(data); const travisCompileTimeColumns = createTravisCompileTimeColumns(travisData); const sha1List = createSha1List(data); - const sha1SuffixList = sha1List.map(sha1 => sha1.substring(sha1.length - 6)); + const sha1ShortList = sha1List.map(sha1 => sha1.substring(0, 6)); const prNumberList = travisData.map(d => d.pull_request_number); const viewCommitOnClick = _sha1List => d => { @@ -144,7 +144,11 @@ export async function main() { axis: { x: { type: "category", - categories: sha1SuffixList + show: false, + categories: sha1List + }, + y: { + label: "seconds", } } }); @@ -158,7 +162,8 @@ export async function main() { axis: { x: { type: "category", - categories: sha1SuffixList + show: false, + categories: sha1ShortList }, y: { tick: { @@ -177,7 +182,8 @@ export async function main() { axis: { x: { type: "category", - categories: sha1SuffixList + show: false, + categories: sha1ShortList } } }); @@ -191,7 +197,8 @@ export async function main() { axis: { x: { type: "category", - categories: sha1SuffixList + show: false, + categories: sha1ShortList } } }); |