Skip to content

Commit 19b8ae4

Browse files
authored
Merge pull request #767 from musicEnfanthen/feature/fix-comparison
fix(comparison): fix js to display refactored macros
2 parents 98dacbe + f7a86b5 commit 19b8ae4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

archive/resources/js/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ const svg3 = d3.select("#modelClassesChart")
2323
.append("g")
2424
.attr("transform", `translate(${width / 2}, ${height / 2})`);
2525

26-
const svg4 = d3.select("#macroPeChart")
26+
const svg4 = d3.select("#macroChart")
2727
.append("svg")
2828
.attr("width", width)
2929
.attr("height", height)
3030
.append("g")
3131
.attr("transform", `translate(${width / 2}, ${height / 2})`);
3232

33-
const svg5 = d3.select("#macroDtChart")
33+
const svg5 = d3.select("#dataChart")
3434
.append("svg")
3535
.attr("width", width)
3636
.attr("height", height)
@@ -97,7 +97,7 @@ function getCharts() {
9797

9898
// Join new data
9999
const path4 = svg4.selectAll("path")
100-
.data(pie(macroPe));
100+
.data(pie(macro));
101101

102102
// Enter new arcs
103103
path4.enter().append("path")
@@ -111,7 +111,7 @@ function getCharts() {
111111

112112
// Join new data
113113
const path5 = svg5.selectAll("path")
114-
.data(pie(macroDt));
114+
.data(pie(data));
115115

116116
// Enter new arcs
117117
path5.enter().append("path")

0 commit comments

Comments
 (0)