In the Book, Charlotte is a mother figure to Wilbur. She saved his life and died at the county fair. Three of her 514 children stay with Wilbur. She had sacrificed herself to save Wilbur.
In the Movies
Charlotte wanted to help Wilbur so she did. Charlotte was a true friend and saved Wilbur from being slaughtered. She died at the county fair. Three of her 514 children stayed with Wilbur.