Skip to content
Snippets Groups Projects
Commit ef0deab9 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

web-ui: improve layout of graphs and add title

parent b35d146e
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,7 @@
<div class="benchmark">
<div class="graphs">
{#each Object.entries(groupResults(results)) as [repoName, data]}
<h4>{repoName}</h4>
<Graph {data} />
<Graph title={repoName} {data} />
{/each}
</div>
</div>
......
......@@ -5,6 +5,7 @@
import { COLORS } from "../config.js";
import { getNodeForResult, sortVersions } from "../utils";
export let title: string;
export let data;
let myChart;
......@@ -84,6 +85,10 @@
},
},
},
title: {
text: title,
display: true,
}
},
onClick: (e, elements) => {
if (elements.length == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment