X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=plugins%2Flegend.js;h=d63f080b6d64a19c48316e02c93395e5007129e4;hb=0673f7c46a068308743a73c2cc92876108c8336b;hp=df2ce1e8050ca2d9e69609112c3c8eb5e1dff4c5;hpb=b7d36956d0b31d38788b9508e2de9f1047395c1f;p=dygraphs.git diff --git a/plugins/legend.js b/plugins/legend.js index df2ce1e..d63f080 100644 --- a/plugins/legend.js +++ b/plugins/legend.js @@ -144,6 +144,7 @@ legend.prototype.predraw = function(e) { if (!this.is_generated_div_) return; // TODO(danvk): only use real APIs for this. + e.dygraph.graphDiv.appendChild(this.legend_div_); var area = e.dygraph.plotter_.area; this.legend_div_.style.left = area.x + area.w - e.dygraph.getOption("labelsDivWidth") - 1 + "px"; this.legend_div_.style.top = area.y + "px";