Browse Source

Selected radius now can accept a function

pull/1675/head
Zachary Maybury 9 years ago committed by Ændrew Rininsland
parent
commit
593f75e59f
  1. 2
      src/shape.line.js

2
src/shape.line.js

@ -372,7 +372,7 @@ c3_chart_internal_fn.pointExpandedR = function (d) {
};
c3_chart_internal_fn.pointSelectR = function (d) {
var $$ = this, config = $$.config;
return config.point_select_r ? config.point_select_r : $$.pointR(d) * 4;
return isFunction(config.point_select_r) ? config.point_select_r(d) : ((config.point_select_r) ? config.point_select_r : $$.pointR(d) * 4);
};
c3_chart_internal_fn.isWithinCircle = function (that, r) {
var d3 = this.d3,

Loading…
Cancel
Save