Answer:
The RATINGS. This is determined by outside advertising agents assessing how many people are approx watching the show. If its high then they keep it on, if not its axed. Basically to do with the viability, that's how much money the show is contributing to the network.