Skip to content

Commit

Permalink
plot updates based on diff
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneenders committed Nov 9, 2023
1 parent f642221 commit 352a478
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/web/resources/report-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ function on(mark, listeners = {}) {

function plotXY(testsData, filterFunction) {
var filteredTests = []
testsData.forEach((test) => {
if (filterFunction(test)) {
testsData.tests.forEach((test) => {
// Ugh global scope
let other = diffAgainstFields[test.name]
if (filterFunction(test, other)) {
filteredTests.push(test)
}
})
Expand Down Expand Up @@ -377,7 +379,7 @@ function buildBody(jsonData, otherJsonData, filterFunction) {
const figureRow = Element("div", { classList: "figure-row" }, [
Element("figure", { id: "xy" }, [
Element("h2", {}, [tempXY_A]),
plotXY(jsonData.tests, filterFunction),
plotXY(jsonData, filterFunction),
Element("figcaption", {}, [tempXY_B])
]),
Element("figure", { id: "pareto" }, [
Expand Down

0 comments on commit 352a478

Please sign in to comment.