add line chart logig