diff --git a/multimap/index.html b/multimap/index.html
index fb8e8a6..db17b16 100644
--- a/multimap/index.html
+++ b/multimap/index.html
@@ -18,11 +18,9 @@
})
(window, document, 'script', 'dataLayer', 'GTM-MBCBVQS');
-
-
Multiple variables map
-
+
@@ -451,6 +449,7 @@
}
input[type='radio']:checked+label {
+ background: #206095;
color: white;
}
diff --git a/multimap/js/script.js b/multimap/js/script.js
index e7479d3..78f0ebd 100644
--- a/multimap/js/script.js
+++ b/multimap/js/script.js
@@ -195,17 +195,25 @@ if(Modernizr.webgl) {
// .on('click',function(d,i){onchange(i)})
- selectgroup = d3.select('#selectnav')
- .append('select')
- .attr('class','dropdown')
- .on('change', onselect)
- .selectAll("option")
- .data(dvc.varlabels)
- .enter()
- .append('option')
- .attr("value", function(d,i){return i})
- .property("selected", function(d, i) {return i===dvc.varload;})
- .text(function(d,i){return dvc.varlabels[i]});
+ var container = d3.select('#selectnav')
+
+ container.append('label')
+ .attr('for', 'selectlistMobile')
+ .attr('class', 'visuallyhidden')
+ .text('Choose from selection');
+
+ selectgroup = container
+ .append('select')
+ .attr('class', 'dropdown')
+ .attr('id', 'selectlistMobile')
+ .on('change', onselect)
+ .selectAll("option")
+ .data(dvc.varlabels)
+ .enter()
+ .append('option')
+ .attr("value", function (d, i) { return i })
+ .property("selected", function (d, i) { return i === dvc.varload; })
+ .text(function (d, i) { return dvc.varlabels[i] });
}
@@ -219,15 +227,15 @@ if(Modernizr.webgl) {
//Flatten data values and work out breaks
- if(config.ons.breaks[a] =="jenks" || config.ons.breaks[a] =="equal") {
+ if(config.ons.breaks =="jenks" || config.ons.breaks =="equal") {
var values = data.map(function(d) { return +d[variables[a]]; }).filter(function(d) {return !isNaN(d)}).sort(d3.ascending);
};
- if(config.ons.breaks[a] =="jenks") {
+ if(config.ons.breaks =="jenks") {
breaks = [];
- ss.ckmeans(values, (dvc.numberBreaks[a])).map(function(cluster,i) {
- if(i