LinechartWidget: fix removal of curves