Skip to content

Commit

Permalink
minor change on layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yueliulu committed Dec 11, 2023
1 parent b936504 commit 2f2f8f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/twocharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Create the first plot
const g1 = svg.append("g")
.attr("transform", `translate(${margin.left + 200},${margin.top + 50})`);
.attr("transform", `translate(${margin.left + 200},${margin.top + 80})`);

const brush = d3.brushX()
.extent([[0, 0], [plotWidth, height]])
Expand Down Expand Up @@ -378,7 +378,7 @@
// Create the second plot

const g2 = svg.append("g")
.attr("transform", `translate(${plotWidth + margin.left * 2 + 400},${margin.top + 50})`);
.attr("transform", `translate(${plotWidth + margin.left * 2 + 400},${margin.top + 80})`);
const average_array = [];

calculated_data.forEach(data => {
Expand Down Expand Up @@ -570,7 +570,7 @@
function addTitle(vis, title){
vis.append("text")
.attr("x", (svgWidth / 6)-60)
.attr("y", margin.top / 2 - 45)
.attr("y", margin.top / 2 - 70)
.attr("text-anchor", "middle")
.style("font-size", "16px")
.style("font-weight", "bold")
Expand Down

0 comments on commit 2f2f8f3

Please sign in to comment.