Saba Noorassa commited on
Commit
8e2eded
·
1 Parent(s): 6644ddd
Files changed (2) hide show
  1. style.css +10 -0
  2. sunburst.js +1 -0
style.css CHANGED
@@ -1,6 +1,10 @@
1
  body {
2
  padding: 2rem;
3
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
4
  }
5
 
6
  h1 {
@@ -36,3 +40,9 @@ p {
36
  margin-top: 2rem;
37
  max-width: 928px;
38
  }
 
 
 
 
 
 
 
1
  body {
2
  padding: 2rem;
3
  font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
+
5
+ background-color: Canvas;
6
+ color: CanvasText;
7
+ color-scheme: light dark;
8
  }
9
 
10
  h1 {
 
40
  margin-top: 2rem;
41
  max-width: 928px;
42
  }
43
+
44
+ .sunburst-label {
45
+ @media (prefers-color-scheme: dark) {
46
+ fill: lightgray;
47
+ }
48
+ }
sunburst.js CHANGED
@@ -65,6 +65,7 @@
65
  .attr("dy", "0.35em")
66
  .attr("fill-opacity", d => +labelVisible(d.current))
67
  .attr("transform", d => labelTransform(d.current))
 
68
  .text(d => d.data.name);
69
 
70
  const parent = svg.append("circle")
 
65
  .attr("dy", "0.35em")
66
  .attr("fill-opacity", d => +labelVisible(d.current))
67
  .attr("transform", d => labelTransform(d.current))
68
+ .attr("class", "sunburst-label")
69
  .text(d => d.data.name);
70
 
71
  const parent = svg.append("circle")