Following up from line break for d3 circle title tooltipText
the code is
svgContainer.selectAll("g.node").each(function() {
var node = d3.select(this);
var tooltipText = node.attr("name");
var tooltipText = node.attr("name").replace("\\n", "<br />");
if (tooltipText) {
node.select("circle")
.attr("data-html", "true")
.attr("title", tooltipText);
}
and I'd like to replace the .attr("data-html", "true")
function with CSS formatting
css, not-working-1:
# g.node circle { data-html: true;}
css, not-working-2:
# g.node circle { html: true;}
both above 2 have "Unknown property name" error.
I'm wondering, what is the CSS equivalent to .attr("data-html", "true")
?
Thank you very much.