The type of graph that’s most useful for showing how one variable changes in response to another variable is called a line graph. A line graph is used when you have one independent and one dependent variable. Usually, the independent variable is assigned to the x-axis, while the dependent variable is assigned to the y-axis.