-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subscriber Line Chart: Fix line chart tick formatting #100451
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Async-loaded Components (~210 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice the ticks don't line up vertically
very well with the data point tooltips, specifically in daily/weekly. Also as you already noted, it's giving some unexpected duplication of yearly ticks.
But it's definitely progress! Happy to approve this with these improvements then keep iterating (and checking the library for what we need to update over there, too)
@@ -121,6 +121,33 @@ export default function SubscribersChartSection( { | |||
const legendRef = useRef< HTMLDivElement >( null ); | |||
const translate = useTranslate(); | |||
|
|||
const formatTimeTick = useCallback( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe the naming of this constant stems from when we were using time ticks for realtime stats. Does this name still make sense? or should it be something else, like formatDateTick?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I'll follow up with it...
this could be a issue how the date object is constructed and it happens when timezone kicks in (related). |
Related to #
Proposed Changes
0.8.3
Why are these changes being made?
Testing Instructions
http://calypso.localhost:3000/stats/subscribers/day/your-site.com?flags=stats/chart-library
Jan 29
for Days and WeeksDec 2024
for Months2024
for YearsPre-merge Checklist