Skip to content

Commit c61dd99

Browse files
committed
font jaunt
1 parent 02229d4 commit c61dd99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev/nyt.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body{
33
margin: 0;
44
}
55

6-
p{
6+
p, text{
77
font-size: 9.23pt;
88
}
99

@@ -24,6 +24,5 @@ h1 {
2424

2525

2626
text {
27-
font-size: 9.32pt;
2827
fill: white;
2928
}

dev/nyt.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(document).ready(function(){
2626
rectText.each(function() {
2727
var $that = d3.select(this);
2828
var x = $that.attr("x");
29-
$that.selectAll("tspan").attr("x", x);
29+
$that.selectAll("tspan").attr("x", x + 30 + "px");
3030
});
3131
});
3232

@@ -204,6 +204,7 @@ function donut() {
204204
var lineContent = words.slice(i, i + wordsPerLine).join(" ");
205205
$that.append("tspan")
206206
.attr("dy", (1.2) + "em")
207+
.attr('dx', "1em")
207208
.text(lineContent)
208209
;
209210
}

0 commit comments

Comments
 (0)