Commit dc33ef14 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix mapToTargetIds

parent ed60f603
......@@ -4148,20 +4148,24 @@
}
})
.on('mouseover', function (id) {
$$.d3.select(this).classed(CLASS.legendItemFocused, true);
if (!$$.transiting && $$.isTargetToShow(id)) {
$$.api.focus(id);
}
if (config.legend_item_onmouseover) {
config.legend_item_onmouseover.call($$, id);
}
else {
$$.d3.select(this).classed(CLASS.legendItemFocused, true);
if (!$$.transiting && $$.isTargetToShow(id)) {
$$.api.focus(id);
}
}
})
.on('mouseout', function (id) {
$$.d3.select(this).classed(CLASS.legendItemFocused, false);
$$.api.revert();
if (config.legend_item_onmouseout) {
config.legend_item_onmouseout.call($$, id);
}
else {
$$.d3.select(this).classed(CLASS.legendItemFocused, false);
$$.api.revert();
}
});
l.append('text')
.text(function (id) { return isDefined(config.data_names[id]) ? config.data_names[id] : id; })
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -256,7 +256,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
}
else {
$$.d3.select(this).classed(CLASS.legendItemFocused, false);
$$.api.revert();
$$.api.revert();
}
});
l.append('text')
......
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