pingjiang / protochart

Automatically exported from code.google.com/p/protochart
0 stars 0 forks source link

Clear legend container #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Legend container doesn't clear up when you reload the content of the chart.
I added  $(this.options.legend.container).innerHTML = ""; to clear up the
contents before writing up the table.

insertLegend: function() {
.....

if($(this.options.legend.container) != null){

   $(this.options.legend.container).innerHTML = "";

   $(this.options.legend.container).insert(table);
}else{
.....

Original issue reported on code.google.com by mrrussel...@gmail.com on 13 Aug 2008 at 7:54