Open ethul opened 10 years ago
yes, it does
:+1:
Is there a correction for this problem? Tkx
:+1:
I can solve this problem using this little hack in line 64 :
if($scope.legend) {
angular.element($elem[0]).parent().parent().children('ul').remove();
angular.element($elem[0]).parent().after( chartCreated.generateLegend() );
}
Hope this helps.
:+1:
Can I make a pull request for this? I've used the correction proposed above and it worked well.
I tried out the new legend functionality, which looks great; however, when the data changes, the legend is repeatedly being inserted into the DOM.
See https://github.com/lgsilver/angles/blob/0859278e0c09fc28c08f02d72d79341004f9afe3/angles.js#L64-65