Commit 90e68267 authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Fix selected/expanded bar styles

parent b862ec2b
......@@ -36,14 +36,14 @@ path, line {
/*-- Bar --*/
.__bar._e_ {
stroke-width: 6px;
stroke-width: 1px;
fill-opacity: 0.6;
}
/* TODO: use this
/* TODO: use this*/
.__bar._s_ {
stroke-width: 1px;
fill-opacity: 0.4;
fill-opacity: 0.3;
}
*/
.selected-bar {
fill: white;
stroke-width: 2px;
......
......@@ -585,15 +585,8 @@
}
function selectBar (target, d, i) {
target.transition().duration(100)
.style("fill-opacity", 0.4)
.style("stroke-width", "1px")
}
function unselectBar (target, d, i) {
target.transition().duration(100)
.style("fill-opacity", 1)
.style("stroke-width", target.classed("_e_") ? "4px" : null)
.each('end', function(){ target.transition().style("stroke-width", null) })
}
function toggleBar (selected, target, d, i) {
(selected) ? selectBar(target, d, i) : unselectBar(target, d, i)
......
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