We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98eebb commit 3ce087dCopy full SHA for 3ce087d
1 file changed
js/reference_lines.js
@@ -79,8 +79,8 @@ const referenceLines = class {
79
.join("text")
80
.classed("plot-text", true)
81
.attr("x", plotObj.width - plotObj.margins.right + 5)
82
- .attr("y", d => plotObj.yscale(d.y) + 4)
83
- .attr("font-size", "8px")
+ .attr("y", d => plotObj.yscale(d.y) + 2)
+ .attr("font-size", "6px")
84
.attr("fill", d => d.color)
85
.attr("display", d => inPlotY(d.y) ? null : "none")
86
.text(d => d.y);
@@ -117,7 +117,8 @@ const referenceLines = class {
117
.attr("text-anchor", "middle")
118
.attr("x", d => plotObj.xscale(d.x))
119
.attr("y", plotObj.height - plotObj.margins.bottom + 10)
120
+ .attr("transform", d => "rotate(-90 " + plotObj.xscale(d.x) + " " + (plotObj.height - plotObj.margins.bottom + 8) + ")")
121
122
123
.attr("display", d => inPlotX(d.x) ? null : "none")
124
.text(d => d.x)
0 commit comments