When there are two categorical variables and one numerical variable then which graph is to be plot.

Suppose there are few cities in a state and likewise there are many states, then which graph is supposed to be used?

Suppose there are few cities in a state and likewise there are many states, then which graph is supposed to be used?