Skip to content

Commit 15d04af

Browse files
committed
git fixed text position
1 parent d77f58f commit 15d04af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function createChart(data) {
8686
.attr("y", function (d) {
8787
return areaHeight - 15;
8888
})
89-
.style("width", bandScale.bandwidth)
89+
.style("width", bandScale.bandwidth())
9090
.style("fill", "black")
9191
.style("font-size", areaWidth / data.length / 3)
9292
.style("font-family", "sans-serif")
@@ -108,6 +108,6 @@ function swapBar(data) {
108108
.duration(750)
109109
.selectAll("text")
110110
.attr("x", function (d) {
111-
return bandScale(d) + 5;
111+
return bandScale(d) + 10;
112112
});
113113
}

0 commit comments

Comments
 (0)