How to make pivot charts in Excel

The tutorial shows how to quickly create, filter and customize pivot charts in Excel, so you can make the most of your data.

If you've ever felt overwhelmed by a large and cluttered spreadsheet, you're not alone. Fortunately, Excel pivot charts provide an easy way to create stunning visualizations of your data. Pivot charts are like magic: they let you summarize, analyze and explore your data with just a few clicks. By the end of this tutorial, you'll be able to make your own pivot graphs and impress your boss, your colleagues and even yourself with your data skills. Ready to get started? Let's dive in!

What is pivot chart?

Pivot Chart is a dynamic visualization tool that works together with Excel PivotTables. While PivotTables provide a way to summarize and analyze large datasets, PivotCharts offer a graphical representation of that summarized data, making trends and patterns easier to spot.

The beauty of pivot charts lies in their interactivity and flexibility. Like pivot tables, pivot charts are dynamic, meaning they can be easily manipulated to display different aspects of the data.

Pivot graphs are particularly useful for presenting complex data in a clear and concise manner. They enable users to identify trends, compare data points, and draw insights quickly. For example, with a pivot chart, you can easily visualize how sales vary across different geographical regions, product categories, or specific time periods.

You can create different types of charts, such as pie, bar, line or scatter, and customize them to suit your needs. You can also change their layout and appearance by applying different filters, fields, and formats. A pivot chart is linked to the pivot table that it is based on, so any changes you make to the pivot table will be reflected in the graph.

In essence, a pivot chart serves as a visual storyteller, transforming raw data into meaningful insights that are easy to understand and act upon. Pivot Chart in Excel

How to make a pivot chart in Excel

Before you start creating a pivot chart, it's important to make sure your data is well-organized and structured. Each column should represent a different variable or category, and each row should contain a unique record. Don't forget to remove any blank rows or columns and double-check your data for errors or inconsistencies.

Tip. If you want your graph to automatically include new records, then format your source data as a table.

With your source data ready, follow these steps to create a pivot chart:

Step 1. Insert a pivot chart

  1. Select any cell in your dataset.
  2. On the Insert tab, in the Charts group, click PivotChart. Insert a pivot chart in an Excel sheet.
  3. The Create PivotChart dialog window will pop up, automatically selecting the entire data range or table. It will then prompt you to choose where to insert your visual - either in a new worksheet or an existing one. Select your preferred location and click OK. Choose where to insert the pivot chart.

Note. Inserting a pivot chart will automatically include a pivot table alongside it, as these two things are closely related.

Step 2. Configure pivot chart

Now that you have a blank pivot table and pivot chart ready, it's time to set them up to display your data trends. In the PivotChart pane that appears on the left, you'll find a list of all the fields from your dataset. Select the fields you want to display in the graph, and then drag and drop them into the corresponding areas:

  • Filters - add filters to display or hide certain data.
  • Axis (Categories) – define what data categories to display along the horizontal axis (placed in pivot table rows).
  • Legend (Series) – indicate what data series to display (placed in pivot table columns).
  • Values – define the values that will be depicted in the chart.

For example, to visualize the total revenue for different project types and statuses, you could drag the "Status" field to the Legend area, "Project type" to the Axis area, and "Total revenue" to the Values area. Configure your pivot graph.

Tip. With a Copilot subscription, you can use the AI to create a desired graph simply by expressing your request in a natural language. For more details, see How to visualize with Copilot.

How to create a chart from a pivot table

If you already have a pivot table set up, here's how you can easily create a graph from it:

  1. Select any cell within your PivotTable.
  2. Navigate to the Insert tab on the Excel ribbon and click on the PivotChart button. Create a chart from a pivot table.
  3. In the dialog box that appears, choose the type of graph you want to create. Here are some recommendations:
    • Bar charts are ideal for comparing values across different categories or time periods.
    • Line charts work well for illustrating trends over time or continuous data series.
    • Pie charts are effective for showing the proportion of each category in a dataset.
    • Scatter plots are useful for visualizing the relationship between two variables and identifying any correlations or patterns.
  4. Once you've selected your desired type, click OK. Choose the chart type.

You will find the visual in the same worksheet next to your PivotTable. You can move it to a different location by dragging and change its size using the resize handles, just as you would with any other graph in Excel. A chart created from a pivot table.

Pivot chart shortcut key

To swiftly make a graph based on a pivot table, you can use the following keyboard shortcuts:

  1. Select any cell within the pivot table.
  2. Press the F11 key to create a graph in a new Chart sheet.
  3. Alternatively, use the Alt + F1 shortcut to insert a chart on the active sheet.

The newly created pivot chart will automatically use the default type. From there, you can easily modify it to suit your preferences by selecting a different chart type.

How to filter a pivot chart in Excel

By default, a pivot chart comes with a filter at the bottom, allowing you to filter the Axis data categories. In some cases, an additional filter may be available on the right side for the Legend, enabling you to hide or show different data series.

To add more filters to a pivot chart, follow these steps:

  1. Click anywhere within your graph to display the Fields pane.
  2. Drag the desired fields to the Filter area.

The added filters will appear at the top of the chart, as illustrated in the image below: Adding a filter to a pivot chart.

It's important to note that default and custom filters offer different options. The built-in filter automatically included for data categories provides all sorting and filtering options available in Excel: Default filter in a pivot graph.

On the other hand, the custom filter that you add to the Filter area only provides basic filter functionality. By default, it allows selecting just one item. To select multiple items, check the corresponding box at the bottom of the filter window: A custom filter added a pivot chart.

Tips:

  • To simplify filtering, try using slicers - interactive buttons that let you change the data displayed in the chart with a click.
  • To filter your graph by different time periods, such as years, quarters, months, or days, consider adding a timeline.
  • Since the pivot table and pivot chart are closely interconnected, any filters applied to the pivot table will automatically be reflected in the graph, and vice versa.

How to modify a pivot chart

Pivot charts are not just powerful visualization tools; they're also incredibly flexible, allowing you to tweak nearly every aspect to suit your needs.

To show, hide or format graph elements like axes, labels, and legend, simply click the Chart Elements button (a plus sign) at the upper right corner of the graph: Manage the chart elements.

For changing the chart style, click the Style icon at the upper right corner and choose from various predefined styles: Change the chart style.

For more options to adjust colors and styles, explore the Design and Format tabs on the ribbon. These tabs offer additional settings and tools to fine-tune your pivot chart to perfection. Adjust a pivot chart's colors and styles using the Design and Format tabs.

For more information, please refer to How to customize Excel graphs.

How to change pivot chart type

You can change the type of your pivot graph at any time after you make it. Here are the steps:

  1. Click anywhere within your graph to activate the pivot chats tabs on the ribbon.
  2. On the Design tab, in the Type group, click Change Chart Type. Change a pivot chart type.
  3. Select the desired chart type from the options provided, and then click OK. Select the desired chart type.

With these simple steps, you can quickly change the appearance of your pivot graph to better suit your data visualization goals.

How to remove fields buttons from pivot chart

When you create a pivot chart in Excel, it automatically includes the so-called "field buttons" to help you interact with your data:

  • Value field button in the upper left
  • Axis field button in the lower left for filtering data categories
  • Legend filed button on the right for filtering data series
Field buttons in a pivot chart.

By hiding unnecessary field buttons, you can get a cleaner and more focused visualization of your data.

To remove a specific field button, right click that button and then select "Hide Value Fields Buttons on Chart" or "Hide Axis Fields Buttons" or "Hide Legend Fields Buttons", depending on which button you clicked.

If you want to remove all field buttons at once, simply right-click on any button and choose Hide All Field Buttons on Chart. Remove field buttons from a pivot chart.

Another way to hide and show field buttons in a pivot chart is through the Field Buttons options on the PivotChart Analyze tab, in the Show/Hide group:

  • To hide a specific field button, click on the corresponding item in the dropdown list to remove the checkmark.
  • To show a hidden field button, click on the unchecked item in the dropdown list.
  • To hide all field buttons in the pivot chart, click Hide All. To make all field buttons, click Hide All once again.
Hide and show field buttons in a pivot chart.

Change how to summarize values in pivot chart

By default, numeric values in a pivot chart are summed, while non-numeric values are counted. To adjust how data is summarized, Excel offers the following customization option:

  1. Right-click the Value field button.
  2. Choose Value Field Settings… from the context menu.
  3. Select the desired summary function.
Change how to summarize values in pivot chart.

How to change pivot chart data source

When dealing with large datasets in Excel, you may have multiple pivot tables covering different regions or time periods. Imagine you've meticulously set up a pivot chart for one table with specific design and formatting. It would be nice to replicate that visual for another table without redoing all the work. The solution lies in changing the source data for a graph.

  1. If you wish to preserve the original chart, then copy the worksheet containing it.
  2. On the copied sheet, select the graph.
  3. On the PivotChart Analyze tab, in the Data group, click Change Data Source. Change the pivot chart data source.
  4. In the dialog box that pops up, choose the Select a table or a range option, then select the new source data for your graph, and click OK. Choose a new data source for the graph.

In some cases, the pivot chart may appear broken as the fields used in the original graph do not exist in the new data source. For example, when changing from Q1 source data to Q2 data, you may get a blank visual. A blank graph appears when some fields do not exist in the new data source.

To fix this, simply select the Q2 field and drag it to the Values area. Your nicely formatted pivot graph will now display the Q2 data. Choose the relevant fields for the copied chart.

To confirm this change, select the graph, click the Change Data Source button on the Analyze tab, and you will see that it is now based on the Q2 table.

Note. Changing the pivot chart data source also alters the data source for the related pivot table.

Move pivot chart to new sheet

Similar to a standard graph, you can relocate your Excel pivot chart to another worksheet. Here's how:

  1. Right-click the pivot graph and select Move Chart from the context menu. Alternatively, click the Move Chart button on the Analyze tab, in the Actions group.
  2. In the dialog window that appears, choose one of the following options:
    • New sheet - this will create a new Chart sheet and move the visual there.
    • Object in – this will move the graph as an object to any existing worksheet.
  3. Click OK.

You can also easily move your graph back to its original sheet using the same steps. Move pivot chart to a new sheet.

How to refresh pivot chart in Excel

Refreshing a pivot chart is just like refreshing a pivot table. There are two main methods:

Refresh pivot chart manually

To manually refresh a pivot chart, you have several options:

  • Select the graph to activate its ribbon tabs. Then, navigate to the PivotChart Analyze tab and click the Refresh button.
  • Alternatively, press ALT + F5 to refresh the worksheet containing the chart.
  • Another way is to right-click the graph, and then click Refresh from the context menu.

Choose the method that suits you best to ensure your graph displays the latest data. Refresh a pivot chart.

Refresh pivot chart automatically when opening the workbook

To ensure your graph stays up-to-date every time you open your workbook, follow these steps:

  1. Right-click the graph and choose PivotChart Options… from the context menu.
  2. In the dialog box that appears, go to the Data tab, and check the box labeled Refresh data when opening the file.
Refresh a pivot chart automatically when opening the workbook.

Note. The settings you select in this dialog will apply to both the chart and the associated pivot table.

That's how you can create, filter and modify pivot charts in Excel. Experiment with different graph types, layouts, and customization options to find the visualization that suits your data best. With a little practice, you'll be able to create dynamic and informative pivot graphs that effectively communicate your insights.

Practice workbook for download

Excel PivotChart - examples (.xlsx file)

2 comments

  1. great

  2. Good article

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)