• I’m specifically having this issue on WooCommerce reports page -> sales by product. The issue is the chart is cut and could not show the graphs below the 0 x-axis. Is there any fix for this? Below is the link to the image:

    https://ibb.co/g9z93mM

    WooCommerce version: 3.7.1
    WooCommerce REST API package: 1.0.2
    WordPress version: 5.2.3
    WordPress memory limit: 768 MB

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jasonhamuq

    (@jasonhamuq)

    Sorry, it should be “The issue is the chart is cut and could not show the graphs below the 0 y-axis”. The negative y-axis is not showing in the graph, is obviously cut, and only the positive y-axis and positive sales.

    • This reply was modified 6 years, 7 months ago by jasonhamuq.
    Plugin Support Riaan K.

    (@riaanknoetze)

    Looks like this might be unique to your setup; Here’s what I’m seeing on my side:


    Link to image: https://cld.wthms.co/X8xMQk

    Have you done a standard conflict test to rule out 3rd party interference? Here’s a guide for more information on conflict testing if needed: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter jasonhamuq

    (@jasonhamuq)

    Before I do the guide, I would like to clarify something. Will the graphs go down the negative y-axis if we do a refund on the order? We usually have this scenario:
    1. An order was created. We wait for a maximum of 101 days or earlier if the customer likes our product and wouldn’t want a refund.
    2. If customer wants a refund, we sometimes do a partial or usually a full refund. Note that the usual request for refund happens 3-5 days after the purchase.
    Now the question is, will a negative sale happen? Your screenshot doesn’t answer it. I tested on our staging site, a quite old one, where a WooCommerce version 3.3.5 is installed. I did a test order today and refunded the order. I changed the post_date and post_modified of the order in the wp_posts table in order to simulate that the order was refunded the day after the purchase. When I checked in WooCommerce->Reports->Sales by product->Certain product, the negative sale is still there. I did some adjustments on the javascript code for you to compare these two images:

    Default:
    https://ibb.co/KDLcCLp
    Adjusted:
    https://ibb.co/DMNsnNm

    Given these examples, I’d like to clarify if these negative sales would ever happen? If not, then I’d proceed with the troubleshooting.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Reports not showing negative sales’ is closed to new replies.