this is for holding javascript data
Adrian Price-Whelan add marker to names of defaults
over 10 years ago
Commit id: 3a2c76387b8746c93ba592c44d49f1cbd25a6b41
deletions | additions
diff --git a/js/d3po.init.js b/js/d3po.init.js
index 7b67c4c..4f13276 100644
--- a/js/d3po.init.js
+++ b/js/d3po.init.js
...
// Default plot parameters
var dTickSize = 16,
dColorMap = ["red", "blue"],
dOpacity dMarkerOpacity =
0.75; 0.75,
dMarkerFill = "#333333";
diff --git a/js/d3po.js b/js/d3po.js
index 16c67af..78d1ff8 100644
--- a/js/d3po.js
+++ b/js/d3po.js
...
.attr("cx", function(d) { return xScaler(d[p['xAxis']]); })
.attr("cy", function(d) { return yScaler(d[p['yAxis']]); })
.attr("r", size)
.style("fill", function(d) { return cScaler(d[state['colorAxis']]) ||
"#333333"; dMarkerFill; })
.attr("opacity", function (d) {
if (!($.isEmptyObject(selection))) {
var xr = selection['xRange'],
...
yCol = selection['yAxis'];
if (e[0][0] > d[xCol] || d[xCol] > e[1][0] || e[0][1] > d[yCol] || d[yCol] > e[1][1]) {
return
dOpacity; dMarkerOpacity;
} else {
return 0.1;
};
} else {
return
dOpacity; dMarkerOpacity;
}
});
}