Chart & Visualization Issues

WPS Spreadsheets: Display Negative Values on a Logarithmic Axis

Huma Ashraf ChHuma Ashraf Ch Nov 12, 2026 869 views

Question details

The user needs to display negative-looking values on a logarithmic chart axis.

WPS Spreadsheets: Display Negative Values on a Logarithmic Axis
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
The chart requires a logarithmic axis, but the intended labels represent negative values.
Observed behavior
A standard logarithmic axis cannot plot zero or negative values because logarithms are undefined for those inputs.
Before you start

Check that the values you will plot are all greater than zero, and decide how many decimal places the axis labels should show. If the source data is negative, prepare a helper column containing the corresponding positive magnitudes.

Solution 1Recommended

Plot positive values and format the logarithmic axis labels with minus signs

Use this method when the chart must remain logarithmic while the displayed labels need to look negative.

A standard logarithmic axis can only use positive numeric values. Plot positive magnitudes, then change the axis number format so each displayed label includes a minus sign; the underlying plotted values remain positive.

This changes the appearance of the labels only. It does not make zero or negative values valid on the logarithmic scale.

1
Create positive plotting values

In the worksheet, enter positive values in the chart's source range. If the original values are negative, add a helper column and use a formula such as =ABS(A2), then fill it down and use that helper column for the chart.

2
Insert or select the chart

Select the positive plotting range, choose the Insert tab, select a chart type such as Scatter, and click the chart to edit its axes.

3
Enable the logarithmic axis

Right-click the value axis, choose Format Axis, open Axis Options, and enable the Logarithmic scale option. Keep the minimum value greater than zero.

4
Open the axis number format settings

In the Format Axis pane, expand Number, choose Custom or enter a custom format code, and place the cursor in the Format Code field.

5
Apply a negative-looking label format

Enter a format such as `"-"0.00` for two decimal places, or `"-"0` for whole numbers, then click Add or Apply. The positive plotted values will be shown with minus signs on the axis labels.

Important limitation: The minus sign is a display format only. Do not enter zero or negative values directly into a standard logarithmic axis; use a different axis scale if their true numeric positions are required.

Format Logarithmic Axis Labels in WPS Spreadsheets

WPS Spreadsheets lets you create a chart from positive magnitudes, enable a logarithmic axis, and apply a custom number format that displays the labels with minus signs while preserving the logarithmic scale.

  1. 1. Prepare positive data: Use positive source values or create a helper column with =ABS(cell) for the chart range.
  2. 2. Create the chart: Select the positive data, open the Insert tab, and choose a Scatter or other suitable chart.
  3. 3. Set logarithmic scaling: Right-click the value axis, select Format Axis, open Axis Options, and turn on Logarithmic scale.
  4. 4. Format the labels: Open Number in the Format Axis pane, choose Custom, enter `"-"0.00` or another suitable format code, and click Apply.
Display negative-looking labels on a logarithmic chart without plotting invalid negative values.Use custom axis number formats for whole numbers or decimal labels.Keep the familiar spreadsheet workflow for editing chart axes and data ranges.Open and save Microsoft Excel XLSX chart files with broad format compatibility.
QA img-9

Frequently Asked Questions

Why can’t I enter negative values directly on a logarithmic axis?

Logarithms are undefined for zero and negative numbers, so a standard logarithmic axis accepts only values greater than zero. Use positive magnitudes with a display format, or switch to a linear axis for true negative values.

How do I make positive axis values display with minus signs in WPS Spreadsheets?

Right-click the chart axis, choose Format Axis, expand Number, select Custom, enter a code such as `"-"0.00`, and click Add or Apply.

Will custom negative-looking labels change the chart’s actual data?

No. The custom number format changes only the text shown on the axis. The chart still plots the positive values used by the logarithmic scale.

Can a logarithmic axis display zero values?

No. Zero cannot be plotted on a standard logarithmic axis. Remove zero from the plotting range, use a positive helper value only when appropriate, or change the axis to a linear scale.

What should I do if the negative values need their true positions on the chart?

Disable Logarithmic scale in Format Axis and use a linear axis. This allows WPS Spreadsheets to plot negative values, zero, and positive values according to their actual numeric positions.