Sub topic 10
Formatting and styling a chart
This chapter covers how to change the look of a chart you have already built. It assumes you can insert a column, bar, line, or pie chart from a selected range, and that you know what series and categories are. It also assumes you are comfortable with the ribbon. Titles, axes, legends, and data labels have their own chapter, so this one focuses on appearance: styles, colors, fonts, fills, gap widths, and reusable templates.
The two layers of formatting
Excel formats a chart at two levels. Knowing which level you are changing prevents most surprises.
- Chart-wide formatting applies to the whole chart: a chart style, a color palette, the chart area background, and the default font.
- Element-level formatting applies to one part: a single series, one data point, the plot area, an axis, or the gridlines.
Chart-wide changes are fast but coarse. Element-level changes give you control but can be overwritten if you later apply a chart style, because a style resets many individual overrides.
Tools you will use
Select the chart and Excel shows two contextual ribbon tabs, Chart Design and Format. Three buttons at the right edge of the chart give quick access to the same features.
| Tool | Where | What it does |
|---|---|---|
| Chart Styles gallery | Chart Design tab, or the brush button beside the chart | Applies a preset combination of fills, borders, and effects |
| Change Colors | Chart Design tab, or the brush button | Swaps the palette used for series |
| Format pane | Right-click an element and choose Format, or press Ctrl+1 | Exposes every setting for the selected element |
| Format tab | Ribbon | Shape fill, outline, effects, and text styling for the selected element |
| Chart Elements button | Plus button beside the chart | Turns elements on and off |
The Format pane is the one to learn well. It changes to match whatever is selected, so always confirm what is selected before you change a setting. The Chart Elements list at the left of the Format tab shows the current selection.
Start with a style and a palette
- Click the chart.
- On the Chart Design tab, open the Chart Styles gallery and hover over options. Excel previews each one live.
- Click Change Colors and pick either a colorful or a monochromatic palette.
A monochromatic palette (shades of one color) suits a chart with a single series, or one where order matters. A colorful palette helps when series must be told apart at a glance. Palettes follow the workbook theme, so changing the theme under Page Layout > Themes recolors every chart that uses theme colors.
Format a single series or data point
To format one series, click any of its columns, bars, or line points once. All points in the series are selected. Click a second time on one point and only that point is selected.
Open the Format pane with Ctrl+1. For a column or bar series, the Fill & Line section controls these settings:
- Fill: solid, gradient, picture, or pattern. Solid is the clearest choice for most data.
- Border: color, width, and dash type.
The Series Options section has two settings that change how a column or bar chart reads:
- Gap Width is the space between groups of columns, shown as a percentage of column width. A value of 50% to 100% gives solid, readable columns. The default of 219% looks thin and loose.
- Series Overlap controls how much columns in the same group overlap. At 0% they touch. At negative values they separate. At 100% they stack on top of each other, which hides data in a clustered chart.
For a line series, the Format pane offers Line width and color, plus a Marker option for shape, size, and fill. Use a width of 2 to 3 points so the line stays visible when the chart is shrunk.
For a pie chart, Angle of first slice rotates the starting position, and Pie Explosion pulls slices apart. Explode a single slice by selecting it and dragging it outward, or by setting the point's explosion value. Exploding every slice makes the chart harder to read.
Highlight one point
A common technique is to color most points in a neutral gray and one point in a strong color. This directs attention to the value that matters, such as the top region.
- Click a column once to select the series.
- Click the column you want to highlight a second time to select only that point.
- Press Ctrl+1, open Fill & Line, and choose a solid fill.
If you set the series fill after setting a point fill, the series fill overrides the point. Set the series first, then the exceptional point.
Fonts, text, and the chart area
Select the Chart Area, which is the outermost frame, and use the Home tab font controls. This sets the font for all text in the chart at once. Then adjust individual items, such as making the title larger than the axis labels.
Keep these guidelines in mind:
- Use one font family throughout, usually the workbook's body font.
- Keep axis and legend text at 10 points or larger so it remains legible when pasted into slides.
- Choose text color with strong contrast against the background. Dark gray on white is easier to read than light gray on white.
The Plot Area is the region inside the axes. Give it no fill and no border unless you need a visible panel. A clean plot area keeps attention on the data.
Gridlines and visual noise
Gridlines help readers estimate values but compete with the data when they are heavy. To lighten them, select the gridlines, open the Format pane, and choose a light gray, a thin width (0.5 point), and a solid or dash line. For a chart with data labels on every point, you can remove gridlines entirely because the labels carry the values.
Avoid 3-D styles. Perspective distorts the apparent size of columns and slices, so values are harder to compare accurately. The Format pane offers 3-D rotation and bevel settings, but a flat chart communicates better.
Color and accessibility
Color choices affect readers who see color differently. About 1 in 12 men has some form of color vision deficiency, and red and green are the most common problem pair.
- Do not rely on color alone to separate series. Add direct labels, distinct markers, or different line dash types.
- Use palettes with a clear difference in lightness, not only in hue.
- Check that the chart still reads in grayscale by printing a preview in black and white.
Reuse a design with a chart template
After you have styled one chart, you can save it as a template and apply it to others.
- Right-click the chart and choose Save as Template.
- Give it a name. Excel stores it as a
.crtxfile. - To use it, select a range, choose Insert > Recommended Charts > All Charts > Templates, and pick your template.
A template stores formatting, chart type, and element layout, but not the data. Fonts follow the theme unless you set them explicitly, so a template may look different in a workbook with another theme.
To copy formatting between charts in the same workbook, copy the styled chart, select the target chart, and use Home > Paste > Paste Special > Formats. Series formatting transfers in order, so the first series receives the first series' style.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Custom colors vanish after changing the style | The style reset element-level formatting | Apply style first, then reformat |
| Only one column changes color | A single point was selected | Click once on a column outside the selection to reselect the series |
| Colors revert when the chart is moved to another workbook | Colors were theme-based and the new workbook has another theme | Use fixed RGB colors, or paste with Keep Source Formatting |
| Columns look too thin | Default gap width is large | Reduce Gap Width to 50% to 100% |
| Clustered columns hide each other | Series Overlap is set too high | Set overlap to 0% or lower |
Formatting with VBA
You can set the same properties through code, which helps when you must style many charts the same way. This macro formats the first chart on the active sheet, assuming it is a column chart with one series.
Sub StyleFirstChart()
Dim ch As Chart
Set ch = ActiveSheet.ChartObjects(1).Chart
ch.ChartGroups(1).GapWidth = 80
ch.ChartGroups(1).Overlap = 0
With ch.SeriesCollection(1)
.Format.Fill.ForeColor.RGB = RGB(31, 78, 121)
.Points(2).Format.Fill.ForeColor.RGB = RGB(237, 125, 49)
End With
ch.ChartArea.Format.TextFrame2.TextRange.Font.Size = 11
ch.PlotArea.Format.Fill.Visible = msoFalse
ch.Axes(xlValue).MajorGridlines.Format.Line.ForeColor.RGB = RGB(217, 217, 217)
End SubNote that the code sets the series fill before the point fill, matching the order the manual steps require.
Overview of the workflow
Exercises
Exercise
You set a custom orange fill on one column, then applied a new chart style, and the column turned back to the style's color. Why did this happen, and what order avoids it?
Show answer
A chart style resets many element-level overrides, including point fills. Apply the chart style and color palette first, then format individual series and points.
Exercise
A clustered column chart with two series shows columns that cover each other. Which setting is the likely cause, and what value separates them?
Show answer
Series Overlap is set too high. Set it to 0% so columns in a group touch without overlapping, or to a negative value to add space between them.
Exercise
Why is it a poor choice to separate two line series only by red and green?
Show answer
Red and green are the most common pair that people with color vision deficiency cannot tell apart. Add distinct markers, dash types, or direct labels so the series differ by more than color.