logo
search
Chart & Visualization Issues

How to Create an Excel Chart with Dates and Times

Partner EditorPartner Editor Oct 1, 2026 869 views

Question details

The user needs to create a chart that accurately plots dates on the horizontal axis and times on the vertical axis.

How to Create an Excel Chart with Dates and Times
Product
Excel
Device & OS
not provided
Scenario
Visualizing time-based data across different dates, such as tracking daily sunrise and sunset times.
Observed behavior
The user struggled to plot the data correctly until they separated the data into two series, utilized an XY scatter chart, and correctly applied date and time formatting to the respective axes via the chart formatting panes.
Before you start

Ensure your source data has dates and times organized in separate columns, and verify that the cells are formatted as proper 'Date' and 'Time' values rather than plain text.

Solution 1Recommended

Use an XY Scatter Chart and Format the Axes

The most effective way to plot dates against times is to use an XY Scatter chart, ensuring your data is split into distinct series and both axes are customized with the correct number formats.

When plotting two continuous numerical scales like dates and times, standard Line or Column charts may treat the horizontal axis as simple text categories. An XY Scatter chart correctly interprets both axes as values, allowing for precise data plotting.

1
Organize your data series

Ensure you have two distinct columns for your data: one for Dates (X values) and one for Times (Y values). Highlight both columns.

2
Insert the Scatter Chart

Navigate to the 'Insert' tab on the ribbon, click the 'Scatter (X, Y) or Bubble Chart' icon, and select a standard Scatter chart with markers.

3
Format the horizontal axis (Dates)

Right-click the horizontal axis and select 'Format Axis'. In the formatting pane, scroll down to 'Number', select 'Date' from the Category dropdown, and choose your preferred date format.

4
Format the vertical axis (Times)

Right-click the vertical axis and select 'Format Axis'. Go to the 'Number' section, select 'Time' from the Category dropdown, and pick a suitable time format.

5
Add a secondary axis for extra data (Optional)

If you have a third column (like day length), add it to the chart. Right-click this new data series, select 'Format Data Series', and under Series Options, check the 'Secondary Axis' box.

Use an XY Scatter Chart and Format the Axes
Proper Cell Formatting: If your chart looks incorrect initially, double-check your spreadsheet cells. Select your raw data, right-click, choose 'Format Cells', and confirm they are explicitly set to 'Date' and 'Time', not 'General'.
Easy Data Visualization

Create Date and Time Charts Effortlessly with WPS Office

WPS Spreadsheet offers a seamless and highly intuitive interface for creating complex data visualizations, including XY scatter charts with custom date and time axes. It fully supports Microsoft Excel files, allowing you to edit and format charts without any compatibility issues.

  1. 1. Open Data: Open your dataset containing dates and times in WPS Spreadsheet.
  2. 2. Insert Chart: Highlight the date and time columns, go to the 'Insert' tab, and click 'Scatter Chart'.
  3. 3. Format Axes: Double-click the horizontal and vertical axes to open the properties pane on the right side of the screen.
  4. 4. Apply Formats: Under the Number section in the properties pane, assign 'Date' to the X-axis and 'Time' to the Y-axis.
Fully compatible with Microsoft Excel (.xlsx) files and advanced chart formats.Intuitive chart formatting panes for quick and easy axis customization.Free and lightweight alternative with robust data visualization tools.Supports secondary axes and multiple data series natively.
microsoft office alternative - wps office

Frequently Asked Questions

Why are my dates and times showing up as random numbers on the chart axis?

Spreadsheet software stores dates and times as serial numbers (e.g., 44000 for a date, 0.5 for 12:00 PM). If your axis displays these raw numbers, you need to right-click the axis, select 'Format Axis', and change the Number format category to 'Date' or 'Time'.

Can I use a Line chart instead of an XY Scatter chart for dates and times?

While it is possible to use a Line chart, an XY Scatter chart is strongly recommended for plotting precise time values against dates. Line charts often treat the horizontal axis as evenly spaced categorical data, which can distort the visual representation if your dates are not sequential or evenly spaced.

How do I add a secondary axis for additional time data?

To add a secondary axis, add your new data series to the chart first. Then, right-click the specific data points of that new series, choose 'Format Data Series', and under Series Options, select 'Secondary Axis'. A new axis will appear on the right side of the chart.

How can I change the intervals between dates on the horizontal axis?

Right-click the horizontal axis and click 'Format Axis'. Under Axis Options, find the 'Major Units' setting. Change this value to adjust the interval you want displayed, such as typing '7' to show a label every week.