Take into account deleted lines when updating the chart dropdowns.