How to Set Minimum and Maximum Time Values on an Excel Chart Axis
Question details
The user needs to set precise minimum and maximum time bounds, including hours, minutes, seconds, and milliseconds, on a chart axis.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Adjusting chart axes to correctly display and scale specific time intervals.
- Observed behavior
- Chart axes handle time as fractions of a 24-hour day, meaning users must input specific time serial values or decimals to configure the visual bounds accurately.
Ensure your source data is formatted as valid time values rather than plain text, as charts require numeric data to calculate axis bounds and intervals properly.
Format Axis Using Time Serial Values
Adjust the minimum and maximum bounds of a chart axis by converting time values into decimal formats.
Spreadsheet software stores time as fractions of a 24-hour day (e.g., 12:00 PM equals 0.5). To define precise time ranges on a chart axis, you must enter these serial fractions instead of standard time formats.
Right-click the Y-axis (or X-axis if you are using a scatter chart) on your existing chart and select 'Format Axis' from the context menu.
In the Format Axis pane, find the 'Bounds' section where the Minimum and Maximum input boxes are located.
Input the desired time bound as a decimal day value. If you don't know the decimal, calculate it in a separate cell using the formula =TIME(hours,minutes,seconds), such as =TIME(6,0,0) for 6 AM, and type the resulting decimal into the bounds box.
Scroll down to the 'Number' section within the Format Axis pane, set the Category to 'Custom', and apply the format code [h]:mm:ss.000 to display hours, minutes, seconds, and milliseconds correctly.

Create and Format Complex Time Charts in WPS Spreadsheet
WPS Spreadsheet offers powerful and intuitive chart formatting options. You can easily adjust axis bounds, handle precise time and date formatting, and create professional visualizations using a familiar interface.
- 1. Open your data: Launch WPS Spreadsheet and open the file containing your time-based chart data.
- 2. Access Axis Properties: Double-click the axis you want to modify to instantly open the right-hand object formatting pane.
- 3. Set Axis Bounds: Navigate to Axis Options and input your precise minimum and maximum decimal values under the Bounds section.
- 4. Apply Custom Formatting: Under the Number tab in the same pane, input your custom time format code and click Add to refresh the axis labels.

Frequently Asked Questions
How do I calculate the decimal value for a specific time?
You can use the TIME function in any empty cell. For example, typing =TIME(14,30,0) will give you the serial number for 2:30 PM, which is approximately 0.60416. You can then copy this decimal and enter it into the Axis Bounds.
Why can't I see the Minimum and Maximum bounds in Axis Options?
This usually happens if your chart is treating the axis data as text categories (like in a standard Line chart X-axis) rather than values. Ensure you are formatting a Value Axis (typically the Y-axis) or use an XY (Scatter) chart to have both axes treated as numerical values.
How do I format the chart axis to show milliseconds?
In the Format Axis pane, go to the Number section, select 'Custom' from the category dropdown, and enter hh:mm:ss.000 as the format code. This forces the axis labels to display times down to the millisecond.




