Commit 3041b38d authored by Luis Silva's avatar Luis Silva

Fixed Issue #1159 - Bug Redrawing Legend when using custom container

parent 836c9f15
...@@ -2626,6 +2626,9 @@ Licensed under the MIT license. ...@@ -2626,6 +2626,9 @@ Licensed under the MIT license.
function insertLegend() { function insertLegend() {
if (options.legend.container!= null)
$(options.legend.container).html("");
else
placeholder.find(".legend").remove(); placeholder.find(".legend").remove();
if (!options.legend.show) if (!options.legend.show)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment