From 00af6c76d30ab52cb4e821430011106118036816 Mon Sep 17 00:00:00 2001 From: Zachary Maybury Date: Tue, 1 Mar 2016 11:54:56 -0500 Subject: [PATCH] Selected radius now can accept a function --- src/shape.line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shape.line.js b/src/shape.line.js index fe452cb..fb68cf7 100644 --- a/src/shape.line.js +++ b/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,