Fixed the line chart issue and changed the formula for csv processing