Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions results/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</style>
<body>
<div id="header" class="w3-container w3-left w3-padding">
<h1>FPGA Tool Perf results</h1>
<h1>FPGA Tool Perf Results</h1>
</div>

<div class="w3-row">
Expand Down Expand Up @@ -183,7 +183,7 @@ <h4>To check the latest statistics of a project for the selected board, please <
}

function LineChart(canvas_name, title, unitstr, labels, datasets, legend) {
return new Chart(document.getElementById(canvas_name), {
const chart = new Chart(document.getElementById(canvas_name), {
type: 'line',
data: {
labels: labels,
Expand Down Expand Up @@ -240,11 +240,27 @@ <h4>To check the latest statistics of a project for the selected board, please <
}
}
}
}
},
}
});

//Toolchain will be hidden when clicked
document.getElementById(canvas_name).addEventListener('click', function(evt) {
const activePoints = chart.getElementsAtEventForMode(evt, 'point', { intersect: true }, true);

if (activePoints.length > 0) {
const clickedDatasetIndex = activePoints[0].datasetIndex;
chart.data.datasets[clickedDatasetIndex].hidden = !chart.data.datasets[clickedDatasetIndex].hidden;

chart.update();
}
});


return chart;
}


function handleSearchQuery() {
var search_query = window.location.search;
const params = new URLSearchParams(search_query);
Expand Down