Skip to content
Snippets Groups Projects
Commit 63dd3d33 authored by Cee Nell's avatar Cee Nell
Browse files

better style on y axis

parent f64f6822
No related branches found
No related tags found
1 merge request!22Make beeswarm vertical
...@@ -149,18 +149,22 @@ ...@@ -149,18 +149,22 @@
const yAxis = svg.append('g') const yAxis = svg.append('g')
.attr("transform", "translate(100, 0)") .attr("transform", "translate(100, 0)")
.call(d3.axisLeft(yScale)); .call(d3.axisLeft(yScale).ticks(5))
.attr("stroke-width", 2)
.attr("font-size", 20);
// Add label to y axis // Add label to y axis
svg.append('text') svg.append('text')
.attr("class", "yLabel") .attr("class", "yLabel")
.attr("text-anchor", "left") .attr("text-anchor", "left")
.attr("font-weight", 700)
.attr("transform", `translate(${margin.left}, ${margin.top/2})`) .attr("transform", `translate(${margin.left}, ${margin.top/2})`)
.text("Level of Agreement"); .text("Level of Agreement");
svg.append('text') svg.append('text')
.attr("class", "yLabel") .attr("class", "yLabel")
.attr("text-anchor", "left") .attr("text-anchor", "left")
.attr("font-weight", 700)
.attr("transform", `translate(${margin.left}, ${height - (margin.bottom/2)})`) .attr("transform", `translate(${margin.left}, ${height - (margin.bottom/2)})`)
.text("Inconclusive"); .text("Inconclusive");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment