Refactoring to fix stacked graphs with NaNs.