Commit f1b320a1 authored by Klaas Winter's avatar Klaas Winter
Browse files

Added a label to the sizemap indicating what it represents

The label says: "x+y contribution"
parent 80b46e76
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -573,7 +573,8 @@ list.ScatterPlot = function () { ...@@ -573,7 +573,8 @@ list.ScatterPlot = function () {
} }
], ],
line, line,
sortedPoints; sortedPoints,
label;
axis = d3.svg.axis() axis = d3.svg.axis()
.scale(scales.colormap) .scale(scales.colormap)
...@@ -655,6 +656,20 @@ list.ScatterPlot = function () { ...@@ -655,6 +656,20 @@ list.ScatterPlot = function () {
.style("fill", "none") .style("fill", "none")
.style("stroke-width", "1px") .style("stroke-width", "1px")
.style("stroke", "gray"); .style("stroke", "gray");
label = gPoints.selectAll("text.text").data([true]);
label
.enter()
.append("text")
.attr("class", "text")
.attr("transform", "rotate(90)")
.style("font-size", "18px")
.style("text-anchor", "middle")
.style("dominant-baseline", "middle");
label
.text("x+y contribution")
.attr("x", plotHeight / 2)
.attr("y", -plotWidth - 10);
}; };
render.selectionOnSizemap = function (svg, data, scales) { render.selectionOnSizemap = function (svg, data, scales) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment