diff --git a/components/OperonStructure.vue b/components/OperonStructure.vue index eb54ee2d8680c62ee26639316e2713f5617bff52..21e0969185d05701d96b534c5960ded3f0005ba5 100644 --- a/components/OperonStructure.vue +++ b/components/OperonStructure.vue @@ -276,6 +276,9 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement | // img group gStructure .append("image") + gStructure + .append("title") + return gStructure }, update => update, @@ -293,7 +296,7 @@ function drawStructure(operonGroup: d3.Selection<SVGGElement, any, SVGElement | .attr("width", d => d.width) .attr("height", d => d.height) .attr("preserveAspectRatio", "xMidYMid meet") - + structureSelection.select("title").text(d => `${d.gene} | ${d.size} aa`) }