Making line charts so the line goes through all data points

13

3

I've got data based on over 50+ years for various products. Not all products have data for each year, so the line is not always shown from point to point - Excel bug or is there a work around?

I've created a line and X-Y scatter charts to show the movement (quantity sold) of these products over the years. It works well, except where the data points are too far apart i.e. 1965 and then 1975. For some reason there is no line.

It's not perfect data because of the missing years, but I can live with that, I just want to see the trend, and not just sporadic dots; squares or crosses.

Any help or links greatly appreciated.

Mike

RocketGoal

Posted 2011-02-16T17:02:26.293

Reputation: 1 468

Answers

23

Hopefully the following image is self-explanatory:

enter image description here

The complete command sequence in Excel 2007 is:

  1. Select your chart
  2. Select Chart Tools → Design on the Ribbon
  3. Select "Select Data"
  4. Select "Hidden and Empty Cells"
  5. Select "Connect data points with line"
  6. Select OK.

Dr. belisarius

Posted 2011-02-16T17:02:26.293

Reputation: 581

0

You probably want an X-Y scatter plot with lines. X = year, Y = quantity sold.

A normal line chart treats the X values as labels whereas an X-Y scatter plot treats the X values as true values.

Mike Fitzpatrick

Posted 2011-02-16T17:02:26.293

Reputation: 15 062

1I've tried the X-Y as well but the same probelms with the missing lines – RocketGoal – 2011-02-17T08:59:07.750

-1

Have you tried adding a TrendLine? Right click on your graph and select "Add a trendline...". Select the trendline you want and voila!

DashTechnical

Posted 2011-02-16T17:02:26.293

Reputation: 99

I've looked at the trendline option, but unfortunately it's not suitable. The closest one is the "2 x average" choice but that isn't close enough - line does not disect all the points. – RocketGoal – 2011-02-17T09:00:16.890