diff --git a/src/shape.line.js b/src/shape.line.js index 421d7f9..bdb03c7 100644 --- a/src/shape.line.js +++ b/src/shape.line.js @@ -372,7 +372,11 @@ c3_chart_internal_fn.pointR = function (d) { }; c3_chart_internal_fn.pointExpandedR = function (d) { var $$ = this, config = $$.config; - return config.point_focus_expand_enabled ? (config.point_focus_expand_r ? config.point_focus_expand_r : $$.pointR(d) * 1.75) : $$.pointR(d); + if (config.point_focus_expand_enabled) { + return isFunction(config.point_focus_expand_r) ? config.point_focus_expand_r(d) : ((config.point_focus_expand_r) ? config.point_focus_expand_r : $$.pointR(d) * 1.75); + } else { + return $$.pointR(d); + } }; c3_chart_internal_fn.pointSelectR = function (d) { var $$ = this, config = $$.config;