Chart & Visualization Issues

How to Create an Excel Chart with Date, Time, Temperature, and Humidity

Khadija KhanKhadija Khan Nov 10, 2026 868 views

Question details

The user needs to create a chart visualizing multi-day sensor data that includes date, time, temperature, and relative humidity on appropriate axes.

How to Create a Chart with Date, Time, Temperature, and Humidity
Product
Spreadsheet
Device & OS
not provided
Scenario
Visualizing temperature and humidity sensor data across multiple days with an accurate combined timeline mapping.
Observed behavior
The user has separate columns for Date and Time, as well as distinct measurement scales for Temperature and Humidity, which need to be combined and plotted on dual Y-axes for clear visualization.
Before you start

Ensure your data is organized into clean columns without blank rows, and verify that your Date and Time columns are formatted correctly as standard date and time values rather than text.

Solution 1Recommended

Create a Combo Chart with a Combined Date/Time Axis

Combine your date and time into a single column for the horizontal axis, then use a combo chart to display temperature and humidity on separate vertical axes.

Because temperature and relative humidity use different measurement scales, plotting them on the same axis makes the chart difficult to read. A Combo Chart solves this by placing one metric on a secondary Y-axis.

1
Combine Date and Time

Insert a new column next to your Time column. Assuming Date is in column A and Time is in column B, enter the formula =A2+B2 in the new column. Press Enter, then drag the fill handle down to apply it to all rows.

2
Format the DateTime Column

Select the new combined column, right-click, and choose 'Format Cells'. Go to the 'Custom' category and enter 'm/d/yyyy h:mm' (or your preferred date-time format) to display both date and time clearly.

3
Insert a Combo Chart

Highlight your new DateTime column, the Temperature column, and the Humidity column. Go to the 'Insert' tab on the ribbon, click the 'Chart' icon, and select 'Combo Chart'.

4
Set Up the Secondary Axis

In the chart configuration, set Temperature to a 'Clustered Column' or 'Line' chart type. Set Humidity to a 'Line' chart type, and check the 'Secondary Axis' box next to Humidity to plot it on the right side of the chart.

Create a Combo Chart with a Combined Date/Time Axis
Data Clarity: Using a secondary axis ensures that both temperature fluctuations and humidity percentage changes are clearly visible without flattening the graph line of the smaller values.
Easily visualize complex data

Create Combo and Pivot Charts Effortlessly with WPS Spreadsheet

WPS Spreadsheet provides intuitive charting tools, built-in combo chart templates, and powerful PivotTable features to quickly turn complex sensor logs into clear, professional visualizations.

  1. 1. Open your data file: Launch WPS Spreadsheet and open your sensor data file.
  2. 2. Combine Date and Time: Use a simple addition formula to merge your Date and Time columns into a single timeline column.
  3. 3. Insert a Chart: Highlight your data, navigate to the 'Insert' tab, and click on 'Chart'.
  4. 4. Configure the Dual Axes: Select 'Combo', assign a secondary axis to the humidity data series, and click 'OK' to instantly generate your chart.
Fully compatible with Microsoft Excel (.xlsx and .xls) formatsBuilt-in Combo Chart templates with easy secondary axis configurationPowerful PivotTable capabilities for grouping date and time dataFree, lightweight, and user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why is my Date and Time addition formula resulting in a weird decimal number?

Spreadsheet software stores dates as whole numbers (representing days since Jan 1, 1900) and times as fractions of a day. Adding them yields a decimal. To fix the display, select the cell, right-click to choose 'Format Cells', and apply a custom Date and Time format like 'mm/dd/yyyy hh:mm'.

Why is a secondary axis necessary for humidity?

Temperature is typically measured in degrees (e.g., 20-35°C), while relative humidity is a percentage (e.g., 40%-90% or 0.4-0.9). Plotting them on the same axis squashes the data with the smaller numerical scale, making the trends impossible to read. A secondary axis provides a dedicated scale for the second metric.

Can I group the PivotChart data by month instead of day?

Yes. If your sensor data spans a long period, right-click the date field in your PivotTable, select 'Group', and choose 'Months' from the grouping dialog box. The linked PivotChart will automatically update to reflect the monthly data trends.