Browse Source

Merge pull request #1147 from lbortoli/master

Add chart.api ($$.api) to 'onunselected' callback
pull/1207/head
Masayuki Tanaka 10 years ago
parent
commit
429f2b4085
  1. 2
      src/selection.js

2
src/selection.js

@ -18,7 +18,7 @@ c3_chart_internal_fn.selectPoint = function (target, d, i) {
};
c3_chart_internal_fn.unselectPoint = function (target, d, i) {
var $$ = this;
$$.config.data_onunselected(d, target.node());
$$.config.data_onunselected.call($$.api, d, target.node());
// remove selected-circle from low layer g
$$.main.select('.' + CLASS.selectedCircles + $$.getTargetSelectorSuffix(d.id)).selectAll('.' + CLASS.selectedCircle + '-' + i)
.transition().duration(100).attr('r', 0)

Loading…
Cancel
Save