Make clip-path include absolute url

parent 00cd9269
c3_chart_internal_fn.getClipPath = function (id) {
return "url(" + "#" + id + ")";
return "url(" + (isNode() ? "" : document.URL.split('#')[0]) + "#" + id + ")";
};
c3_chart_internal_fn.appendClip = function (parent, id) {
return parent.append("clipPath").attr("id", id).append("rect");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment