diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f3557a7 Binary files /dev/null and b/.DS_Store differ diff --git a/national-sentiment-page/script.js b/national-sentiment-page/script.js index 1f3f5f7..746f6d4 100644 --- a/national-sentiment-page/script.js +++ b/national-sentiment-page/script.js @@ -79,7 +79,18 @@ d3.csv("images/cleaned_table_1.csv").then(function (data) { .attr("y", height + margin.bottom / 2) .attr("text-anchor", "left") .style("font-size", "10px") - .text("Source: Gallup Poll; Created by Alice Shao with the help of ChatGPT"); + .style("font-color", "blue") + .html("Source: Gallup Poll" ); + + svg.append("text") + .attr("x", margin.left) + .attr("y", height + margin.bottom / 2 + 15) // Adjust the y-coordinate for proper spacing + .attr("text-anchor", "left") + .style("font-size", "10px") + .text("Created by Alice Shao with the help of ChatGPT"); + + svg.append("style") + .text(".blue-link { fill: blue; text-decoration: underline; }"); // Add X and Y axes