diff --git a/c3.js b/c3.js index 9c199ab..8b5de13 100644 --- a/c3.js +++ b/c3.js @@ -177,7 +177,7 @@ /*-- Set Variables --*/ - var clipId = __bindto.replace('#', '') + '-clip', + var clipId = (typeof __bindto === "string" ? __bindto.replace('#', '') : __bindto.id) + '-clip', clipPath = getClipPath(clipId); var isTimeSeries = (__axis_x_type === 'timeseries'),