diff --git a/addons/easy_charts/Utilities/Scripts/chart.gd b/addons/easy_charts/Utilities/Scripts/chart.gd index 18ad192..99aa4a1 100644 --- a/addons/easy_charts/Utilities/Scripts/chart.gd +++ b/addons/easy_charts/Utilities/Scripts/chart.gd @@ -468,11 +468,10 @@ func count_functions(): else: functions = y_datas.size() func clear_points(): - if $Points.get_children(): - for function in Points.get_children(): - function.queue_free() - for legend in $Legend.get_children(): - legend.queue_free() + for function in Points.get_children(): + function.free() + for legend in Legend.get_children(): + legend.free() func redraw(): build_chart()