Linear date axis in pivot tables

3

How do I format a PivotChart so that the horizontal axis is displayed in linear time?

The PivotChart does not display the horizontal axis in linear time, compare the width of e.g. 1997 to the width of 2001

See the PivotTable below as well as the source data (both excerpts).

PivotTable used for PivotChart Source data used for PivotTable

If it is in fact not possible to create a linear-time PivotChart, what is the best way to convert my source data in order to achieve that?

Riley

Posted 2015-07-03T08:37:40.387

Reputation: 152

1Your question is a bit unclear, can you please elaborate-the time is sorted in the same manner as your pivot table (that's built into pivot charts). And it appears that it is chronological (which I assume you also want). However, pivot charts use a line chart type, and that assigns the x-axis values as categorical data, which means the values are handled basically as labels. If you want an appropriate gap between date values (e.g. 3 spaces for 3 days), you'll need to use an XY/Scatter chart, which cannot be done as a Pivot Chart. – dav – 2015-07-07T12:48:58.940

That answers my main question, thank you! So it is simply not possible to get a linear-time representation in pivot charts unless your source data has entries for each increment. – Riley – 2015-07-15T12:00:31.190

3Unfortunately, that's correct. However, unless you specifically want a Pivot Chart (and I personally can't think of a good reason to), you can create a standard XY/Scatter Chart from your Pivot Table data-either directly (reference the actual cells of the Pivot) or indirectly (use helper cells to transfer the values to your chart). If you want help with either of those, reword your question to fit, and I'll be happy to help. – dav – 2015-07-15T12:31:30.483

Answers

2

The answer is: not possible to get a linear-time representation in pivot charts (if your source data steps are not linear)

As a workaround, you can create a standard XY/Scatter Chart from your Pivot Table data-either directly (reference the actual cells of the Pivot) or indirectly (use helper cells to transfer the values to your chart).

(from @dav's comments)

Daniel Hári

Posted 2015-07-03T08:37:40.387

Reputation: 144