UNPKG

@plotly/d3

Version:

A JavaScript visualization library for HTML and SVG.

11 lines (9 loc) 380 B
import "selection"; d3_selectionPrototype.html = function(value) { return arguments.length ? this.each(typeof value === "function" ? function() { var v = value.apply(this, arguments); this.innerHTML = v == null ? "" : v; } : value == null ? function() { this.innerHTML = ""; } : function() { this.innerHTML = value; }) : this.node().innerHTML; };