Sub topic 10
Adjusting chart type, series, and labels
This chapter covers what to do after Gemini has created a first chart. You will change the chart type, fix which columns are plotted as series, and correct titles and labels. It assumes you can already open the Gemini side panel, write a prompt that names a range, and read the chart that comes back. Those steps are covered in earlier chapters.
Why the first chart is rarely the last
Gemini builds a chart from your prompt and the layout of your data. It guesses at details you did not state: which column is the category axis, which columns are series, and whether the first row is a header. A good first prompt reduces the guessing, but you will usually still adjust something.
There are two ways to make changes:
- Ask Gemini in a follow-up prompt.
- Edit the chart yourself in the chart editor.
Both are legitimate. The skill is knowing which one is faster for the change you need.
The anatomy of a chart you can adjust
Every adjustment targets one of a few parts of the chart. Use these names in your prompts, because Gemini responds better to "series" than to "the lines".
| Part | What it is | Typical problem |
|---|---|---|
| Chart type | Column, bar, line, pie, scatter, and others | A pie chart with 15 slices is unreadable |
| Category axis (X-axis) | The labels that group the data, such as Category or Month | Dates or categories appear in the wrong order |
| Series | One set of values drawn as bars, a line, or slices | A numeric ID column is plotted as a series |
| Value axis (Y-axis) | The numeric scale | The scale starts at a value that exaggerates differences |
| Title and axis titles | Text that describes the chart | The default title is vague or missing |
| Legend | The key that maps colors to series | It is missing, or it names series "Column D" |
| Data labels | Values printed on bars, points, or slices | Labels overlap or show raw numbers instead of percentages |
Starting point
The examples below use the monthly expenses table from earlier chapters, with columns Date, Category, Description, Amount, and Paid By. The first prompt was:
Create a column chart of total Amount by Category using the data in A1:E50, with the title "Spending by Category".Suppose Gemini returns a column chart with one column per category. The chart is correct, but you now want to change it.
Changing the chart type
A chart type should match the question the chart answers.
| Question | Good type | Poor choice |
|---|---|---|
| How do categories compare? | Column or bar | Line |
| How does a value change over time? | Line or column | Pie |
| What share does each part have of a whole? | Pie or stacked column (few parts) | Scatter |
| How are two numeric values related? | Scatter | Pie |
Ask for a type change by naming the chart you already have and the one you want:
Change the chart "Spending by Category" from a column chart to a horizontal bar chart, and sort the bars from largest to smallest.Horizontal bars are a better fit when category names are long, because the names read left to right instead of being rotated or cut off.
A pie chart request should state the limit on slices:
Change this chart to a pie chart. Group any category below 5% of the total into a slice called "Other".Gemini may not be able to do the grouping inside the chart itself. Charts in Sheets plot cells, so grouping into "Other" often needs a helper range with its own formula. If Gemini refuses or only changes the type, ask it to build a summary range first, then chart that range.
Fixing series
Series problems are the most common reason a chart looks wrong. Typical symptoms:
- A column of IDs or years appears as a bar series.
- Two series appear when you wanted one.
- The legend says "Series 1" or a column letter.
- Values for one category are split across several series.
The cause is usually the data layout. If a column of numbers has no header, Sheets cannot name it. If the category column holds numbers, Sheets may treat it as a series.
You can describe the series you want in a prompt:
In the chart "Spending by Category", plot only the Amount column as a series. Use Category as the labels on the horizontal axis. Remove any other series.To compare two measures, name both and say how they relate:
Add a second series to this chart showing the budgeted amount from column G, so I can compare it with the actual total for each Category.This request only works if column G holds one budget value per category, in the same order as the chart's categories. Gemini cannot compare data that is not laid out to match.
A chart from summarized data
The first chart groups raw rows by Category. Sheets can do this inside the chart, but many people prefer a visible summary range that the chart reads. A summary range lets you check the numbers directly. Put this formula in a free area, for example H1:
=QUERY(A1:E, "select B, sum(D) where D is not null group by B label sum(D) 'Total'", 1)The output is a two-column table: Category and Total. You can then ask:
Create a column chart from H1:I10 with Category on the horizontal axis and Total as the only series.A chart on a QUERY range updates when the source data changes, because the formula recalculates. The chart range must be large enough to hold new categories. If you add an eleventh category and the chart range stops at row 10, the new row will not appear.
Editing labels and titles
Labels turn a chart into something another person can read without asking you what it means. Use specific prompts:
Set the chart title to "Monthly Spending by Category, 2026". Add the horizontal axis title "Category" and the vertical axis title "Amount (USD)". Show the value on top of each column.Check each of these:
- The title says what is measured and for what period.
- Axis titles include units.
- Legend names are meaningful. If a series is called "Sum of Amount", rename it.
- Data labels do not overlap. If they do, widen the chart, remove them, or switch to a bar chart.
Gemini sometimes applies some of the requested changes and silently skips others. After every follow-up, compare the chart against your list rather than assuming it did everything.
Doing it by hand in the chart editor
The chart editor is the most reliable way to make small, precise changes. Open it by selecting the chart, opening its three-dot menu, and choosing Edit chart. It has two tabs.
- Setup controls the chart type, data range, X-axis, series, and whether the first row is used as headers.
- Customize controls the title, fonts, colors, axis scales, legend position, and data labels.
Manual edits are often faster than a prompt for:
- Changing one color.
- Setting an exact axis minimum or maximum.
- Reordering series.
- Fixing a data range that is off by one row.
Prompts are often faster for changes that touch several parts at once, such as "change to a stacked bar chart, sort by total, and add a title".
A useful habit is to switch between them. Ask Gemini for the large change, then use the editor for the finishing touches. Later prompts may overwrite manual edits, so make your manual changes last.
A flow for refining a chart
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Chart plots row numbers or dates as a series | The category column is numeric or the header row is missing | Add a header, or in Setup, set the column as the X-axis |
| Legend shows "Column D" | The header row is not recognized | In Setup, turn on "Use row 1 as headers" |
| New rows do not appear | The chart range ends at a fixed row | Extend the range, for example to A1:E500 |
| Totals look too large | Each row is plotted separately, or a total row is included in the range | Chart a summary range, and exclude the total row |
| Bars are in alphabetical order | Sheets keeps the source order | Sort the summary range, or use the sort option in Setup |
| Follow-up prompt undid an earlier edit | The prompt regenerated the chart | Repeat the edit in the editor, and make it last |
Verifying the result
A chart can look right and still be wrong. Do two checks:
- Pick one category and compute its total by hand, for example with
=SUMIF(B2:B, "Groceries", D2:D). Compare it with the bar or data label. - Confirm the number of bars equals the number of distinct categories. A missing bar often points to a range that is too short, and an extra bar often points to a spelling variant such as "Grocery" and "Groceries".
Fixing a spelling variant in the data is better than patching the chart, because every later formula benefits from it.
Exercises
Exercise
A Gemini-created column chart shows two series, "Year" and "Amount", although you only want Amount. Year is a numeric column. Give a follow-up prompt that fixes this, and name the underlying cause.
Show answer
Prompt: "In the chart, plot only the Amount column as a series, use Year as the labels on the horizontal axis, and remove any other series." The cause is that Year holds numbers and has no text role, so Sheets treated it as a data series instead of a category label. You could also fix it in the chart editor's Setup tab by setting Year as the X-axis and removing it from the series list.
Exercise
You added a new category to your data, but the chart built on a QUERY range in H1:I10 does not show it. Why, and how do you fix it?
Show answer
The QUERY output now has 11 rows, but the chart range stops at row 10, so the new row falls outside it. Extend the chart range, for example to H1:I30, in the chart editor's Setup tab. Leaving spare rows avoids repeating the problem.
Exercise
A pie chart of 14 categories is unreadable. Name two changes that would make the chart clearer, and write a prompt for one of them.
Show answer
Switch to a sorted horizontal bar chart, or group the smallest categories into an "Other" slice using a helper range. Example prompt: "Change the chart to a horizontal bar chart and sort the bars from largest to smallest."