MCPcopy
hub / github.com/lowlighter/metrics / createSVG

Method createSVG

source/app/metrics/utils.mjs:806–811  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

804 }
805
806 createSVG(width, height) {
807 const svg = this.element.append("svg").attr("xmlns", "http://www.w3.org/2000/svg")
808 if ((width) && (height))
809 svg.attr("width", width).attr("height", height)
810 return svg
811 }
812
813 svgString() {
814 return this.element.select("svg").node()?.outerHTML || ""

Callers 4

graphFunction · 0.95
pieFunction · 0.95
index.mjsFile · 0.80
index.mjsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected