chart.remove works with selection === undefined. Added debug.invalidate to chart/base.