Chart & Visualization Issues

Create a Candlestick Chart with Relative X-Axis Labels in Excel

Algirdas JasaitisAlgirdas Jasaitis Nov 27, 2026 869 views

Question details

Create an Excel candlestick chart with relative x-axis labels and labels for individual candlesticks.

Create a Candlestick Chart with Relative X-Axis Labels in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to chart open, high, low, and close values against relative positions rather than only calendar dates.
Observed behavior
The desired chart displays candlesticks with meaningful relative x-axis labels and identifies individual candles.
Before you start

Arrange the source data in chronological order with columns for the x-axis label, Open, High, Low, and Close. Decide whether relative positions such as 0, 1, and 2 are equally spaced categories or require spacing based on their numeric differences.

Solution 1Recommended

Create a Stock Chart with Relative Category Labels

Use this method when each candlestick can be equally spaced and the x-axis should show relative labels.

Excel's Open-High-Low-Close stock chart uses a category or date axis, not a true numeric value axis. Relative labels such as -2, -1, 0, and 1 can identify equally spaced candles, but their numeric differences do not control spacing.

1
Prepare the data

In a worksheet, enter headers such as Relative position, Open, High, Low, and Close in that order. Add one row per candle, with relative labels in the first column and numeric price values in the remaining columns.

2
Insert the candlestick chart

Select the header row and data, then choose Insert > Insert Waterfall, Funnel, Stock, Surface, or Radar Chart > Stock > Open-High-Low-Close. The chart menu name can vary by Excel version.

3
Check the horizontal labels

Right-click the chart and choose Select Data. Under Horizontal (Category) Axis Labels, click Edit and select the cells containing your relative positions.

4
Keep categories equally spaced

Right-click the horizontal axis, choose Format Axis, and select Text axis under Axis Options if Excel treats the labels as dates.

5
Add individual candle labels

Select the chart, choose Insert > Text Box, and draw a text box near a candle. Select the text box border, click the formula bar, enter a reference such as =Sheet1!$F$2, and press Enter. Repeat for other candles and position the boxes manually.

Create a Stock Chart with Relative Category Labels
Numeric spacing requires a different approach: If relative positions are irregular and their numeric differences must determine horizontal spacing, a standard Excel stock chart is not sufficient. The source data and desired layout are needed to design an XY-based custom chart.
Free Microsoft Office alternative

Explore Spreadsheet Charts with WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility for an easier transition. It does not change Excel's stock-chart axis behavior; check chart options in your WPS version before migrating a candlestick chart.

Organize open, high, low, and close data in a familiar spreadsheet interfaceOpen and edit Microsoft Excel XLSX and XLS filesExplore spreadsheet chart options for visualizing financial dataUse a free, lightweight office suite for everyday work
QA img-9

Frequently Asked Questions

What data does an Excel candlestick chart need?

An Open-High-Low-Close stock chart needs a category or date column followed by numeric Open, High, Low, and Close columns. Select the table before choosing the stock chart from Insert.

Can the candlestick x-axis show relative positions instead of dates?

Yes. Put labels such as -2, -1, 0, and 1 in the first column, then select them under Select Data > Horizontal (Category) Axis Labels. Use a text axis for equally spaced categories.

Will a stock chart space relative values according to their numeric differences?

No. A standard stock chart uses a category or date axis rather than a numeric value axis. Irregular numeric spacing requires a custom approach, such as an XY-based chart.

How can I label each individual candlestick?

Select the chart and use Insert > Text Box to add a label near each candle. You can link a selected text box to a worksheet cell by entering a cell reference in the formula bar, but you must position the boxes manually.