Google Sheets Chart group by

Want to get more out of Google Docs for work or school? Sign up for a Google Workspace trial at no charge.

Add a second Y-axis

You can add a second Y-axis to a line, area, or column chart.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Double-click the chart you want to change.
  3. At the right, click Customize.
  4. Click Series.
  5. Optional: Next to "Apply to," choose the data series you want to appear on the right axis.
  6. Under "Axis," choose Right axis.
  7. To customize the axis, click Right vertical axis. Then, make your changes.

Tip: You can’t add a second X-axis, but you can

Switch rows & columns in a chart

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Double-click the chart you want to change.
  3. At the right, click Setup.
  4. Click Switch rows / columns.

Customize the axes

Edit the vertical axis

You can format the labels, set min or max values, and change the scale.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Double-click the chart you want to change.
  3. At the right, click Customize.
  4. Click Vertical axis.
  5. Make the changes you want.

Tip: To hide the vertical axis line, uncheck the box next to "Show axis line".

Choose which data shows on the horizontal axis

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Select the cells you want to include in your chart.
  3. Click Insert
    Google Sheets Chart group by
    Chart.
  4. At the right, click Setup.
  5. In the box next to "x-axis," click More
    Google Sheets Chart group by
    Google Sheets Chart group by
    Edit.
  6. Select the cells you want to show on the horizontal axis.
  7. Click OK.

Edit the horizontal axis

You can format the labels or reverse axis order.

Tip: If the chart contains time series or numeric data, you can also change the min and max values.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Double-click the chart you want to change.
  3. At the right, click Customize.
  4. Click Horizontal axis.
  5. Make the changes you want.

Group horizontal axis data

To show more info, you can label groups of columns on the horizontal axis.

  1. On your computer, open a spreadsheet in Google Sheets.
  2. Ensure that the data has more than one X-axis column. For example: Year, Quarter, and Month.
  3. Double-click the chart you want to change.
  4. At the right, click Setup.
  5. Next to “Grouping,” click Add.
  6. Pick the group you want.
  7. To add more groups, click Add again.

Add series sets (domain sets)

To show sets of data side by side, you can add X-axis columns to your spreadsheet and chart. For bar charts, you can also add Y-axis columns.

Want to get more out of Google Docs for work or school? Sign up for a Google Workspace trial at no charge.

Learn how to add a chart to your spreadsheet.

  Line

Use a line chart to look at trends or data over a time period. Learn more about line charts.

  Combo

Use a combo chart to show each data series as a different marker type, like a column, line, or area line. .

  Area

Use an area chart to track one or more data series graphically, like changes in value between categories of data. Learn more about area charts.

Related charts: Stacked area chart, 100% stacked area chart, Stepped area chart, Stacked stepped area chart, 100% stacked stepped area chart

  Column

Use a column chart to show one or more categories, or groups, of data, especially if each category has subcategories. Learn more about column charts.

Related charts: Stacked column chart, 100% stacked column chart

Google Sheets Chart group by
  Bar

Use a bar chart to show the difference between the data points for one or more categories. Learn more about bar charts.

Related charts: Stacked bar chart, 100% stacked bar chart

Google Sheets Chart group by
  Pie

Use a pie chart, also known as a pie graph, to show data as "slices of pie," or proportions of a whole. Learn more about pie charts.

Related chart: Doughnut chart

  Scatter

Use a scatter chart to show numeric coordinates along the horizontal (X) and vertical (Y) axes and to look for trends and patterns between two variables. Learn more about scatter charts.

Related charts: Bubble chart

  Histogram

Use a histogram chart to show the distribution of a data set across different buckets. Learn more about histogram charts.

  Candlestick

Use a candlestick chart to show an opening and closing value overlaid on a total variance, like changes in stock value. Learn more about candlestick charts.

  Organizational

Use an organizational chart, also called an org chart, to show the relationship between members of a company, group of people, or family tree. Learn more about organizational charts.

  Tree map

Use a tree map to show a data tree, where objects are organized into parent-child hierarchies. Learn more about tree map charts.

 Geo

Use a geo chart to show a map of a country, continent, or region. The values for each location will be shown with colors. Learn more about geo charts.

 Waterfall

Use a waterfall chart to show how later values add or subtract from a starting value. Learn more about waterfall charts.

 Radar

Use a radar chart to show one or more variables in a two-dimensional graph, with one spoke for each variable. Learn more about radar charts.

 Gauges

Use gauges to show numeric values or measurements within a range. Each value produces a gauge, so you can compare and contrast measurements. Learn more about gauge charts.

 Annotated timeline

Use an annotated timeline to show an interactive time series line chart with the option to add notes. Learn more about timeline charts.

 Table

Use a table chart to turn your spreadsheet table into a chart that can be sorted and paged. Table charts are often used to create a dashboard in Google Sheets or embed a chart in a website. Learn more about table charts.

How do I group data in a chart in Google Sheets?

Manually group data:.
In Sheets, open an existing pivot table or create a new one..
Select the row or column items you want to group together..
Right-click a selected item and then click Create pivot group..
(Optional) To ungroup, right-click a grouped item and click Ungroup pivot items..

How do I group a chart by column value in Google Sheets?

Select the columns that you want to group. Make sure you select the entire row by selecting the column alphabet at the top-most of the document (and not the cells in the worksheet). Hover the cursor over the selected columns and right-click. Click on the option, Group column B-C.

How do I create a grouped bar chart in sheets?

How to Make a Bar Chart in Google Sheets.
Step 1: Select the source data you want displayed in the Bar chart. ... .
Step 2: Click the Insert option on the main menu, and then click the Chart Option from the submenu. ... .
Step 3: Change the Chart type to Bar Chart. ... .
Result: Your Bar Chart will appear on your worksheet..

How do you create a grouped chart?

How to Create a Grouped Bar Chart?.
Select the table and go to the Insert menu, click on Recommended Charts and then select the Clustered Column Chart..
The selected data will be plotted as a clustered chart with different bars created for each year and every three months..