Add Core Web Vitals distribution histogram to tech report#1241
Draft
alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
Draft
Add Core Web Vitals distribution histogram to tech report#1241alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
alonkochba wants to merge 1 commit intoHTTPArchive:mainfrom
Conversation
Adds a collapsible histogram chart to the CWV section showing how origins are distributed across performance buckets for LCP, CLS, INP, FCP, and TTFB. Features: - Column chart with bars color-coded green/orange/red by CWV thresholds - Dashed plotlines marking good/needs-improvement boundaries - Tail buckets aggregated into an overflow "X+" bar so all origins are shown - Metric selector in the collapsed summary bar for quick switching - Loading spinner while the API call is in progress - Error message when data is unavailable - Light and dark mode support with theme-aware colors - Anchor link (#section-cwv_distribution) with auto-expand on direct navigation - URL hash updates when the section is expanded Fetches data from /v1/cwv-distribution (HTTPArchive/tech-report-apis#105) with technology, date, rank, and geo parameters. Also scopes the global .highcharts-point CSS rule to line/spline series only, so column chart bar colors are not overridden. Closes HTTPArchive#1147
f2eec8d to
0ab9b9a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a collapsible histogram chart to the CWV section of the tech report drilldown page, showing how origins are distributed across performance buckets.
#section-cwv_distribution) with auto-expand/v1/cwv-distributionwith technology, date, rank, and geo paramsAlso scopes the global
.highcharts-pointCSS rule to line/spline series only, so column chart bar colors render correctly.Depends on
/v1/cwv-distributionBigQuery endpointCloses #1147