d3pie icon indicating copy to clipboard operation
d3pie copied to clipboard

updateProp header.title.text Bug in Safari, IE

Open royhobbstn opened this issue 9 years ago • 0 comments

SVG text elements aren't updated via the .innerHTML property in Safari and IE

which is probably what your d3 call is using: d3.select("#" + this.cssPrefix + "title").html(value);

Instead, try the .textContent property.

Example:

This doesn't work in Safari and IE: pie.updateProp("header.title.text", config.header.title.text);

This does: var titletext = document.getElementById('p0_title'); titletext.textContent=config.header.title.text;

royhobbstn avatar May 28 '15 18:05 royhobbstn