Skip to content

Commit

Permalink
Update font color and text size in script.js, and change text color i…
Browse files Browse the repository at this point in the history
…n styles.css
  • Loading branch information
paubel committed Feb 8, 2024
1 parent 620a325 commit bb269f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,9 @@ d3.json("stars-sort.json").then(function (stars) {
.attr("y", (d) => yScale(d.luminosity))
.text((d) => d.name)
.style("font-size", "11px")
.style("fill", "#fff")
.style("fill", "#f2f2f2")
.style("text-shadow", "2px 2px 4px #000");

/* d3.selectAll(".star-label").style("display", "none"); */

labels
.attr("x", (d) => xScale(d.temperature) + 8)
.attr("y", (d) => yScale(d.luminosity));
Expand Down Expand Up @@ -483,7 +481,7 @@ d3.json("stars-sort.json").then(function (stars) {
.attr("y", (d) => yScale(d.luminosity))
.text((d) => d.name)
.style("font-size", "11px") // Increase the font size
.style("fill", "#fff") // Change the font color to white
.style("fill", "#f2f2f2")
.style("text-shadow", "2px 2px 4px #000"); // Add a black text shadow

// Define a custom locale with space as the thousand separator
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root {
--primary-color: #444;
--background-color: #121212;
--text-color: #ebebeb;
--text-color: #ccff00;
--border-color: #ebebeb;
}
#hr-diagram {
Expand Down

0 comments on commit bb269f6

Please sign in to comment.