Skip to main content
Mathematics LibreTexts

Section 6.6: Line Graphs

  • Page ID
    216506
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Learning Objectives
    • Draw line graphs

     


    Definition: Line Graph

    A line graph (also called a line chart or line plot) is a type of graph that displays data as points connected by straight line segments. Line graphs are particularly effective for showing trends, patterns, and changes in data over time or across ordered categories. The connected points create a visual flow that makes it easy to see how values increase, decrease, or remain constant.

    When to Use Line Graphs

    Line graphs are most effective when you want to:

    • Show change or trends over time (days, months, years, etc.)
    • Display continuous data or data measured at regular intervals
    • Compare trends between two or more groups
    • Emphasize the rate of change rather than individual values
    • Track progress or performance over time
    • Identify patterns such as seasonal variations or cycles

    Key Components of a Line Graph

    • Horizontal Axis (x-axis): Typically represents time or an ordered sequence (years, months, days, measurement intervals)
    • Vertical Axis (y-axis): Represents the variable being measured (temperature, price, test scores, population, etc.)
    • Data Points: Individual values plotted at their corresponding coordinates
    • Line Segments: Straight lines connecting consecutive data points, showing the progression from one value to the next
    • Labels and Titles: Clear axis labels with units, and a descriptive title for the entire graph
    • Scale: Consistent intervals on both axes, with the y-axis starting typically (but not always) at zero
    • Legend (for multiple lines): Identifies what each line represents when comparing multiple data sets

     

    Types of Line Graphs

    1. Simple Line Graph: Shows one variable over time
    • Example: Daily temperature for one week
    • One line tracking a single data series

    Line graph showing values for four items connected by a blue line.

    The line graph displays values for four items. Item 1 has a value of 5, Item 2 increases sharply to 18, Item 3 decreases to 8, and Item 4 rises again to 12. The graph shows a peak at Item 2 followed by a drop and partial recovery by Item 4.

     

    1. Multiple Line Graph: Shows two or more variables on the same graph for comparison
    • Example: Comparing sales for Product A and Product B over the same time period
    • Different lines are usually distinguished by color or line style (solid, dashed, dotted)
    • Requires a legend to identify each line

    Line graph comparing two sets of values across four items using blue and orange lines.

    The line graph compares two data sets across four items. The blue line has values of 5, 18, 8, and 12 for Items 1 through 4. The orange line has values of 10, 7, 17, and 4. The blue line peaks at Item 2 and ends higher than it begins, while the orange line peaks at Item 3 and drops sharply at Item 4. The two lines cross between Items 2 and 3 and again between Items 3 and 4.

     

    How Line Graphs Work

    Each data point is plotted at the intersection of its x-coordinate (often time) and y-coordinate (measured value). Once all points are plotted, they are connected in order with straight lines. The resulting graph creates a visual representation of how the variable changes, with:

    • Upward slopes indicating increases
    • Downward slopes showing decreases
    • Horizontal sections representing no change
    • Steep slopes showing rapid change
    • Gradual slopes indicating slow, steady change

    Advantages of Line Graphs

    • Excellent for showing trends: The connected lines make patterns immediately visible
    • Easy to see changes over time: Increases and decreases are obvious from the line's direction
    • Multiple data sets: Can display several lines on one graph for comparison
    • Shows rate of change: Steep lines indicate rapid change; flat lines show stability
    • Continuous flow: Creates a sense of progression and continuity
    • Predictions: Trends can suggest future values (though caution is needed)
    • Identifies patterns: Cycles, peaks, and valleys become apparent

    Limitations of Line Graphs

    • Can be misleading with non-continuous data: Connecting discrete, unrelated categories may imply relationships that don't exist
    • Cluttered with too many lines: More than 3-4 lines become difficult to read and compare
    • Scale manipulation: Changing the y-axis scale can exaggerate or minimize trends
    • Assumes linear change between points: The straight lines suggest constant rate of change between measurements, which may not be accurate
    • Requires ordered data: The x-axis must represent a logical sequence
    • Can hide individual data points: Focus on trend may obscure specific values

    When NOT to use Line Graphs

    Avoid line graphs when:

    • Data is not ordered or sequential (use bar graphs instead for unrelated categories)
    • You're comparing unrelated categories where connections would be meaningless
    • You want to emphasize individual values rather than trends
    • Data points are too sparse to show meaningful trends
    • The independent variable is categorical with no natural order
    • You need to show parts of a whole (use pie charts)
    • You're showing the relationship between two quantitative variables (use scatter plots)
    Constructing a Line Graph
    • Step 1 — Obtain the the data in a table.
    • Step 2 — Set up the axes and label.
    • Step 3 — Plot the data points.
    • Step 4 — Connect the points.
    • Step 5 — Add a title and legend, if necessary.
    Example #6.6.1 ðŸ¤”

    A small business tracked its monthly revenue (in thousands of dollars) for the first six months:

    Monthly revenues from January to June
    Month Revenue
    January 45
    February 52
    March 45
    April 55
    May 63
    June 34

    Create a line graph to display this data.


    ✅ Solution:
    • Step 1 — Obtain the data in a table: This step is done, since the data was given in a frequency distribution.
    • Step 2 — Set up the axes and label:
      • Label the main axes: "Months", for the horizontal axis & "Revenue ($1,000)", for the vertical axis. 
      • On the horizontal axis, "Months", label the following: January, February, March, April, May, and June.
      • On the vertical axis, "Revenue ($1,000)", since the minimum frequency is 34 and the maximum frequency is 63, then increments of 5 can be used for the tick marks on the vertical axis, starting from 0 (or 30) to 65 (or 70).
    • Step 3 — Plot the data points: On January at 45, February at 52, March at 45, April at 55, May at 63, and June at 34.
    • Step 4 — Connect the points: Connect the points from left to right using one straight line between each set of points.
    • Step 5 — Add a title and legend, if necessary: Add the title, "Monthly Revenue" or some other similar title.

    Line graph showing monthly revenue from January through June.

    The line graph displays monthly revenue in thousands of dollars from January to June. Revenue starts at $45,000 in January, rises to $52,000 in February, drops back to $45,000 in March, then increases to $55,000 in April and peaks at $63,000 in May. Revenue then declines sharply to $34,000 in June. Overall, the graph shows an upward trend through May followed by a significant decrease in June.

    Example #6.6.2 🤔

    According to the United States Geological Survey (USGS), there were 112 earthquakes in California with a magnitude of 4.5 or higher, from the years 2014 to 2024. The following number of earthquakes with a magnitude of 4.5 or more is given in the table below.

    4.5+ Earthquakes by Year in California
    Year Number of 4.5+ Earthquakes
    2014 9
    2015 5
    2016 6
    2017 1
    2018 2
    2019 37
    2020 15
    2021 11
    2022 7
    2023 10
    2024 10

    Create a line graph to display this data.


    ✅ Solution:
    • Step 1 — Obtain the data in a table: This step is done, since the data was given in a frequency distribution.
    • Step 2 — Set up the axes and label:
      • Label the main axes: "Year", for the horizontal axis & "Number of 4.5+ Earthquakes", for the vertical axis. 
      • On the horizontal axis, "Months", label the following: 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, and 2024.
      • On the vertical axis, "Number of 4.5+ Earthquakes", since the minimum frequency is 1 and the maximum frequency is 37, then increments of 5 can be used for the tick marks on the vertical axis, starting from 0 to 40.
    • Step 3 — Plot the data points: On 2014 at 9, 2015 at 5, 2016 at 6, 2017 at 1, 2018 at 2, 2019 at 37, 2020 at 15, 2021 at 11, 2022 at 7, 2023 at 10, and 2024 at 10.
    • Step 4 — Connect the points: Connect the points from left to right using one straight line between each set of points.
    • Step 5 — Add a title and legend, if necessary: Add the title, "Earthquakes in California with a Magnitude of 4.5 or Higher from the Years 2014 to 2024" or some other similar title.

    Line graph showing number of California earthquakes with magnitude 4.5+ from 2014 to 2024.

    The line graph displays the number of earthquakes in California with a magnitude of 4.5 or higher from 2014 to 2024. The number starts at 9 in 2014, drops to 5 in 2015, rises slightly to 6 in 2016, then decreases to 1 in 2017 and 2 in 2018. A sharp spike occurs in 2019 with 37 earthquakes, followed by a decline to 15 in 2020, 11 in 2021, and 7 in 2022. The number then increases slightly to 10 in both 2023 and 2024. The graph shows a dramatic peak in 2019 compared to all other years.

    Example #6.6.3 🤔

    According to the U.S. Energy Information Administration (EIA), the average monthly retail price per gallon for regular gasoline in California during 2024 is given below:

    Average Monthly Gasoline Prices in California During 2024
    Month Price per Gallon (in dollars)
    Jan $4.482
    Feb $4.535
    Mar $4.831
    Apr $5.255
    May $5.518
    Jun $4.777
    Jul $4.590
    Aug $4.451
    Sep $4.574
    Oct $4.513
    Nov $4.355
    Dec $4.243

    Create a line graph to display this data.


    ✅ Solution:
    • Step 1 — Obtain the data in a table: This step is done, since the data was given in a frequency distribution.
    • Step 2 — Set up the axes and label:
      • Label the main axes: "Month", for the horizontal axis & "Price per Gallon (in dollars)", for the vertical axis. 
      • On the horizontal axis, "Months", label the following: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
      • On the vertical axis, "Price per Gallon (in dollars)", since the minimum frequency is $4.243 and the maximum frequency is $5.518, then increments of $.20 can be used for the tick marks on the vertical axis, starting from $4 to $6.
    • Step 3 — Plot the data points: On Jan at $4.482, Feb at $4.535, Mar at $4.831, Apr at $5.255, May at $5.518, Jun at $4.777, Jul at $4.590, Aug at $4.451, Sep at $4.574, Oct at $4.513, Nov at $4,355, and Dec at $4.243.
    • Step 4 — Connect the points: Connect the points from left to right using one straight line between each set of points.
    • Step 5 — Add a title and legend, if necessary: Add the title, "Average Monthly Retail Price for Regular Gasoline in California during 2024" or some other similar title.

    Line graph of average monthly retail price per gallon of regular gasoline in California during 2024.

    The line graph displays the average monthly retail price per gallon of regular gasoline in California for each month of 2024. Prices begin at $4.482 in January and rise gradually through spring, reaching $5.255 in April and peaking at $5.518 in May. Prices then decline to $4.777 in June, continue downward to $4.451 in August, rise slightly to $4.574 in September, and decrease again through the end of the year, ending at the yearly low of $4.243 in December. The overall trend shows gasoline prices increasing during the first half of the year and decreasing during the second half.

    Example #6.6.4 🤔

    A student tracked the number of hours spent studying each week during an 8-week semester:

    Study Hours by Week
    Week # Study Hours
    1 5
    2 2
    3 9
    4 8
    5 10
    6 12
    7 15
    8 18

    Create a line graph to display this data.


    ✅ Solution:
    • Step 1 — Obtain the data in a table: This step is done, since the data was given in a frequency distribution.
    • Step 2 — Set up the axes and label:
      • Label the main axes: "Week #", for the horizontal axis & "Study Hours", for the vertical axis. 
      • On the horizontal axis, "Week #", label the following: 1, 2, 3, 4, 5, 6, 7, and 8.
      • On the vertical axis, "Study Hours", since the minimum frequency is 2 and the maximum frequency is 18, then increments of 2 can be used for the tick marks on the vertical axis, starting from 0 to 20.
    • Step 3 — Plot the data points: On 1 at 5, 2 at 2, 3 at 9, 4 at 8, 5 at 10, 6 at 12, 7 at 15, and 8 at 18.
    • Step 4 — Connect the points: Connect the points from left to right using one straight line between each set of points.
    • Step 5 — Add a title and legend, if necessary: Add the title, "Tracking Study Hours for an 8-Week Course" or some other similar title.

    Line graph showing the number of study hours recorded each week during an 8-week course.

    The line graph displays study hours across eight weeks of a course. Study time begins at 5 hours in Week 1 and decreases to 2 hours in Week 2. It then rises sharply to 9 hours in Week 3, dips slightly to 8 hours in Week 4, and steadily increases afterward: 10 hours in Week 5, 12 hours in Week 6, 15 hours in Week 7, and 18 hours in Week 8. The overall trend shows increasing study hours over time, especially during the second half of the course.

    Section 6.6: Line Graphs [In-Class Exercises]
    1. The Los Angeles Rams during the 2025 regular season, scored the most points in the NFL with 518. The following total points scored by quarter (overtime excluded) for the Los Angeles Rams is given in the table below:
    Points Scored by Quarter
    Quarter Points Scored
    First Quarter 113
    Second Quarter 144
    Third Quarter 124
    Forth Quarter 130

    Construct a line graph for the data.

    1. A survey of 100 8th-graders was conducted. They were asked what their favorite sport is.The results are given in the frequency table.
    Favorite Sports of 8th Graders
    Sport No. of 8th Graders
    Baseball 17
    Basketball 26
    Football 22
    Hockey 15
    Track 6
    Volleyball 9
    Wrestling 5

    Construct a line graph for the data.

    1. The typical monthly electricity usage (in kilowatts per hour, kWh) for a U.S. household based on publicly available summaries from the U.S. Energy Information Administration (EIA) in a city for an entire year is given in the frequency table below.
    Monthly Household Electricity Usage
    Date kWh
    Jan 470
    Feb 430
    Mar 410
    Apr 390
    May 420
    Jun 560
    Jul 640
    Aug 610
    Sep 520
    Oct 460
    Nov 430
    Dec 450

    Construct a line graph for the data.

    Answers
    1. Line graph showing total number of points scored by the 2025 Los Angeles Rams by quarter.

      The line graph compares total points scored by quarter during the 2025 Los Angeles Rams regular season. The Rams scored 113 points in the first quarter, increased to 144 points in the second quarter, dropped to 124 points in the third quarter, and slightly increased to 130 points in the fourth quarter. The highest scoring quarter was the second quarter, while the lowest was the first quarter. Overall, scoring peaked in the middle of games and remained relatively strong late in games.

    2. Line graph showing the number of 8th grade students who selected each sport as their favorite.

      The line graph displays favorite sports chosen by 8th graders. Basketball was the most popular sport with 26 students, followed by football with 22 students and baseball with 17 students. Hockey was selected by 15 students. Volleyball had 9 students, track had 6 students, and wrestling was the least popular with 5 students. The graph rises from baseball to basketball, then generally declines across the remaining sports with a small increase at volleyball before dropping again at wrestling.

    3. Line graph showing monthly household electricity usage in kWh from January thru December.

      The line graph displays monthly electricity usage over one year. Usage starts at 470 kWh in January and gradually decreases to a low of 390 kWh in April. It then rises sharply through the summer months, reaching 560 kWh in June and peaking at 640 kWh in July. Usage remains high in August at 610 kWh before steadily declining through the fall to 430 kWh in November, followed by a slight increase to 450 kWh in December. The graph shows the highest electricity usage during summer months and the lowest during spring.



    This page titled Section 6.6: Line Graphs is shared under a not declared license and was authored, remixed, and/or curated by Timothy Cooley.

    • Was this article helpful?