Commit 127b6258 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Merge branch 'master' of https://github.com/loga4/c3 into loga4-master

parents 4049d4f0 80931ff6
......@@ -3045,6 +3045,7 @@
/*-- Draw Legend --*/
function focusLegend(id) {
if(!__legend_show) { return; }
var legendItem = legend.selectAll('.legend-item'),
isTarget = function (d) { return !id || d === id; },
notTarget = function (d) { return !isTarget(d); };
......@@ -3052,6 +3053,7 @@
legendItem.filter(isTarget).transition().duration(100).style('opacity', 1);
}
function defocusLegend(id) {
if(!__legend_show) { return; }
var legendItem = legend.selectAll('.legend-item'),
isTarget = function (d) { return !id || d === id; },
notTarget = function (d) { return !isTarget(d); };
......@@ -3059,6 +3061,7 @@
legendItem.filter(isTarget).transition().duration(100).style('opacity', 0.3);
}
function revertLegend() {
if(!__legend_show) { return; }
legend.selectAll('.legend-item')
.transition().duration(100)
.style('opacity', 1);
......
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