Delete all child nodes when resetting the segments in line chart node
Apparently being owned by the parent does not mean removeChild cleans things up so we have to do that manually.
Apparently being owned by the parent does not mean removeChild cleans things up so we have to do that manually.