Skip to content

Commit

Permalink
cleanup car example
Browse files Browse the repository at this point in the history
  • Loading branch information
jdfekete committed Jan 4, 2021
1 parent 1c960cb commit 836dfcc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
33 changes: 0 additions & 33 deletions examples/cars/index-es.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,38 +57,5 @@
.reorderable()
.interactive()
.brushMode("1D-axes"); // enable brushing

});
var sltBrushMode = d3.select('#sltBrushMode')
sltBrushMode.selectAll('option')
.data(parcoords.brushModes())
.enter()
.append('option')
.text(function(d) { return d; });
sltBrushMode.on('change', function() {
parcoords.brushMode(this.value);
switch(this.value) {
case 'None':
d3.select("#pStrums").style("visibility", "hidden");
d3.select("#lblPredicate").style("visibility", "hidden");
d3.select("#sltPredicate").style("visibility", "hidden");
d3.select("#btnReset").style("visibility", "hidden");
break;
case '2D-strums':
d3.select("#pStrums").style("visibility", "visible");
break;
default:
d3.select("#pStrums").style("visibility", "hidden");
d3.select("#lblPredicate").style("visibility", "visible");
d3.select("#sltPredicate").style("visibility", "visible");
d3.select("#btnReset").style("visibility", "visible");
break;
}
});
sltBrushMode.property('value', '1D-axes');
d3.select('#btnReset').on('click', function() {parcoords.brushReset();})
d3.select('#sltPredicate').on('change', function() {
parcoords.brushPredicate(this.value);
});

</script>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dev": "rollup -c rollup.config.dev.js -w",
"pretest": "npm run build",
"test": "vows --nocolor; echo",
"clean": "rm -rf node_modules",
"clean": "rm -rf node_modules dist",
"prettier": "prettier --write '{src,test}/**/*.js'",
"docs": "jsdoc -c jsdoc.config.json",
"check": "jshint src/*.js test/*.js",
Expand Down

0 comments on commit 836dfcc

Please sign in to comment.