We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02229d4 commit c61dd99Copy full SHA for c61dd99
dev/nyt.css
@@ -3,7 +3,7 @@ body{
3
margin: 0;
4
}
5
6
-p{
+p, text{
7
font-size: 9.23pt;
8
9
@@ -24,6 +24,5 @@ h1 {
24
25
26
text {
27
- font-size: 9.32pt;
28
fill: white;
29
dev/nyt.js
@@ -26,7 +26,7 @@ $(document).ready(function(){
rectText.each(function() {
var $that = d3.select(this);
var x = $that.attr("x");
- $that.selectAll("tspan").attr("x", x);
+ $that.selectAll("tspan").attr("x", x + 30 + "px");
30
});
31
32
@@ -204,6 +204,7 @@ function donut() {
204
var lineContent = words.slice(i, i + wordsPerLine).join(" ");
205
$that.append("tspan")
206
.attr("dy", (1.2) + "em")
207
+ .attr('dx', "1em")
208
.text(lineContent)
209
;
210
0 commit comments