Add line chart function

Add special case for retain earning