diff --git a/jquery.flot.js b/jquery.flot.js index 2855d2e..4def83c 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -2626,7 +2626,10 @@ Licensed under the MIT license. function insertLegend() { - placeholder.find(".legend").remove(); + if (options.legend.container!= null) + $(options.legend.container).html(""); + else + placeholder.find(".legend").remove(); if (!options.legend.show) return;