Make WordPress Core

Opened 11 hours ago

Closed 10 hours ago

#66641 closed defect (bug) (invalid)

X-axis of bar chart should always be segmented into 24 hours (Traffic Summary on Stats dashboard)

Reported by: kenjihayakawa Owned by:
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc: Focuses:

Description

The recent update to the Stats dashboard has created this issue.

In Stats > Traffic Summary, the bar chart's x-axis for today gets divided by the current hour plus one. For example, when user checks the bar chart for November 10th, 2026 at 3am November 10th, 2026, the bar chart's x-axis is divided into 4 segments (12am, 1am, 2am, 3am) instead of 24 hours (i.e. 12am, 1am, 2am ... 11pm, 12pm).

https://imgur.com/a/tKm8nYK

There are two problems with this.
(1) It is aesthetically unpleasant to see the width of the bar charts and the number of segments in the x-axis change every hour (literally).
(2) When the user clicks on the < button to go to the previous day, the previous day's bar chart also get divided by the same number of segments as today. For example, the bart chart for November 9th, 2026 gets divided into only 4 segments and displays only 4 of the last 24 hours, i.e. 8pm, 9pm, 10pm and 11pm.

A simple fix is to make sure that the x-axis of the bar charts is always segmented into 24 hours. This is how it has been until the previous interface of the Traffic Summary widget before the recent update, so it shouldn't be too difficult to implement.

Change History (1)

#1 @peterwilsoncc
10 hours ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Hi @kenjihayakawa and welcome back to trac!

Trac is for the development of features included in WordPress Core, ie WordPress running without any plugins or custom themes.

The screen shot you've provided is showing a widget provided by an analytics plugin, the feature is not included in WordPress Core.

You will need to get in touch with the plugin's author via their support forum to ask for assistance. I am unable to figure out the plugin you are using based on the screen shot, I am sorry, so you'll need to look at the plugins page of your WordPress dashboard to figure it out.

I'm going to close this ticket of as invalid, in this case that's tracs unfriendly term to indicate that I've referred you to plugin support.

Note: See TracTickets for help on using tickets.