Showing preview only (1,098K chars total). Download the full file or copy to clipboard to get everything.
Repository: GoogleChrome/CrUX
Branch: main
Commit: b62877a01a52
Files: 34
Total size: 1.0 MB
Directory structure:
gitextract_zxhgowfc/
├── .github/
│ └── ISSUE_TEMPLATE/
│ └── new-crux-metric-request.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── colab/
│ ├── crux-history-api.ipynb
│ └── navigation-types-and-lcp.ipynb
├── gs/
│ ├── README.md
│ ├── crux-api.gs
│ └── psi-api-v5.gs
├── js/
│ └── crux-api-util.js
├── sql/
│ ├── README.md
│ ├── cls-summary.sql
│ ├── core-web-vitals-compliance-rates.sql
│ ├── core-web-vitals.sql
│ ├── country-fast-fcp.sql
│ ├── fast-fcp-for-domain.sql
│ ├── global-connection-density.sql
│ ├── global-device-density.sql
│ ├── mastering-crux/
│ │ ├── 01-basic-cwv.sql
│ │ ├── 02-timeseries-cwv.sql
│ │ ├── 03-device-cwv.sql
│ │ └── 04-country-cwv.sql
│ ├── notification-permissions-origin-form-factor.sql
│ ├── notification-permissions.sql
│ ├── origins-for-domain.sql
│ ├── p75-fcp-timeseries.sql
│ ├── p75-fcp.sql
│ ├── p75-lcp-country.sql
│ ├── subregion-fast-fcp.sql
│ ├── test-my-site.sql
│ └── timeseries-fast-fcp.sql
└── utils/
├── countries.js
├── countries.json
└── countries.txt
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE/new-crux-metric-request.md
================================================
---
name: New CrUX metric request
about: Tell us about a new metric you'd like to see included in the report
title: ''
labels: enhancement
assignees: ''
---
**Proposal**
[What exactly is the metric you're proposing?]
**Use cases**
[How do you see this metric being useful in the dataset? Please list.]
**Measurement**
[How is the metric measured? Is it a web standard?]
**Schema**
[How will the data be represented in BigQuery? Sample schema below.]
```
"first_paint": {
"histogram": {
"bin": [
{"start": 0, "end": 100, "density": 0.003},
{"start": 100, "end": 200, "density": 0.014},
// …
]
}
}
```
================================================
FILE: CONTRIBUTING.md
================================================
# How to Contribute
We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.
## Contributor License Agreement
Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.
You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.
## Code reviews
All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.
## Community Guidelines
This project follows [Google's Open Source Community
Guidelines](https://opensource.google.com/conduct/).
================================================
FILE: LICENSE
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: README.md
================================================
# CrUX

CrUX is the [Chrome User Experience Report](https://developer.chrome.com/docs/crux/) from Google. It measures the user experience of the web and makes the raw histogram data available on BigQuery and through APIs.
This repository is a place for the web community to share queries, ideas, or issues. This is also a place to discover useful recipes for extracting insights from the CrUX dataset via [sql](./sql), [JavaScript to make API calls](./js), [AppScript](./gs), or [Colabs](./colab). If you have a recipe that you'd like to share, feel free to submit a pull request.
We also encourage CrUX users to use GitHub issues to [ask questions](https://github.com/GoogleChrome/CrUX/issues/new?labels=question), [suggest new features](https://github.com/GoogleChrome/CrUX/issues/new?labels=enhancement), or [file bugs](https://github.com/GoogleChrome/CrUX/issues/new?labels=bug). This process complements the [Google Group](https://groups.google.com/a/chromium.org/forum/#!forum/chrome-ux-report).
_This repository is not an officially supported Google product._
================================================
FILE: colab/crux-history-api.ipynb
================================================
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "pUbCORNfBNPw",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"outputId": "ad2c31d3-4db2-44ec-adb5-82efe2317d0f",
"cellView": "form"
},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>Displaying CrUX data for origin <code>https://web.dev</code></h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": []
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"\n",
" For each metric with histograms and percentiles, we display two graphs:\n",
" <ul>\n",
" <li>The percentile graph shows the p75 values for the metric over time.\n",
" The shaded areas indicate good (light green),\n",
" needs improvement (light orange), and poor (light red).\n",
" <li>The tribin graph shows the percentages of page loads with\n",
" a good, needs improvement, or poor user experience over time.\n",
" </ul>\n",
" If the metric has labeled fractions, then we display these in a single\n",
" stacked bar chart.\n",
" In all cases, each point in time in the graph on the x axis\n",
" represents a 28 day collection period ending in that date.\n",
" "
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>CLS (cumulative_layout_shift)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/cls/\" target=\"_blank\">web.dev/cls/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-f6a99f1c28e845ce9fbce5d572472757\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-f6a99f1c28e845ce9fbce5d572472757\") {\n",
" outputDiv = document.getElementById(\"altair-viz-f6a99f1c28e845ce9fbce5d572472757\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-b0a59f8c24cf22f19c84210e66ac5889\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-341163d28f457bdd5a0efe5fc1a94cee\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-6cc5805629fd54e9c174c2b3b47f24a4\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"CLS\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-b0a59f8c24cf22f19c84210e66ac5889\": [{\"y\": 0, \"y2\": 0.1}], \"data-341163d28f457bdd5a0efe5fc1a94cee\": [{\"y\": 0.1, \"y2\": 0.25}], \"data-6cc5805629fd54e9c174c2b3b47f24a4\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.00\"}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.01\"}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.09\"}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.10\"}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.09\"}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.08\"}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.07\"}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"CLS\": \"0.07\"}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-5ea41c7f495f449ab5d10394ad17929e\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-5ea41c7f495f449ab5d10394ad17929e\") {\n",
" outputDiv = document.getElementById(\"altair-viz-5ea41c7f495f449ab5d10394ad17929e\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-1d04ae17ef8ffcc1f0812f31a04672f6\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"CLS\", \"scale\": {\"domain\": [\"poor (CLS > 0.25)\", \"needs improvement (0.1 < CLS <= 0.25)\", \"good (CLS <= 0.1)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"CLS\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-1d04ae17ef8ffcc1f0812f31a04672f6\": [{\"last_date\": \"2023-07-22T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.96759033203125}, {\"last_date\": \"2023-07-29T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.96856689453125}, {\"last_date\": \"2023-08-05T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.968780517578125}, {\"last_date\": \"2023-08-12T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.96978759765625}, {\"last_date\": \"2023-08-19T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.967681884765625}, {\"last_date\": \"2023-08-26T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.964080810546875}, {\"last_date\": \"2023-09-02T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.96246337890625}, {\"last_date\": \"2023-09-09T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.960357666015625}, {\"last_date\": \"2023-09-16T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.95928955078125}, {\"last_date\": \"2023-09-23T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.96026611328125}, {\"last_date\": \"2023-09-30T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.959381103515625}, {\"last_date\": \"2023-10-07T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.958465576171875}, {\"last_date\": \"2023-10-14T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.92767333984375}, {\"last_date\": \"2023-10-21T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.8426513671875}, {\"last_date\": \"2023-10-28T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.754364013671875}, {\"last_date\": \"2023-11-04T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.6893310546875}, {\"last_date\": \"2023-11-11T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.671844482421875}, {\"last_date\": \"2023-11-18T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.669647216796875}, {\"last_date\": \"2023-11-25T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.67352294921875}, {\"last_date\": \"2023-12-02T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.680572509765625}, {\"last_date\": \"2023-12-09T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.70745849609375}, {\"last_date\": \"2023-12-16T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.759246826171875}, {\"last_date\": \"2023-12-23T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.80413818359375}, {\"last_date\": \"2023-12-30T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.864654541015625}, {\"last_date\": \"2024-01-06T00:00:00\", \"CLS\": \"good (CLS <= 0.1)\", \"pct\": 0.89727783203125}, {\"last_date\": \"2023-07-22T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.014984130859375}, {\"last_date\": \"2023-07-29T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.014495849609375}, {\"last_date\": \"2023-08-05T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.01458740234375}, {\"last_date\": \"2023-08-12T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.01458740234375}, {\"last_date\": \"2023-08-19T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.0133056640625}, {\"last_date\": \"2023-08-26T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.0137939453125}, {\"last_date\": \"2023-09-02T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.013397216796875}, {\"last_date\": \"2023-09-09T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.013885498046875}, {\"last_date\": \"2023-09-16T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.013702392578125}, {\"last_date\": \"2023-09-23T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.013092041015625}, {\"last_date\": \"2023-09-30T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.012176513671875}, {\"last_date\": \"2023-10-07T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.0126953125}, {\"last_date\": \"2023-10-14T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.039398193359375}, {\"last_date\": \"2023-10-21T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.11871337890625}, {\"last_date\": \"2023-10-28T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.210418701171875}, {\"last_date\": \"2023-11-04T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.275146484375}, {\"last_date\": \"2023-11-11T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.295928955078125}, {\"last_date\": \"2023-11-18T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.29852294921875}, {\"last_date\": \"2023-11-25T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.29693603515625}, {\"last_date\": \"2023-12-02T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.292388916015625}, {\"last_date\": \"2023-12-09T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.26751708984375}, {\"last_date\": \"2023-12-16T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.217010498046875}, {\"last_date\": \"2023-12-23T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.173126220703125}, {\"last_date\": \"2023-12-30T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.113800048828125}, {\"last_date\": \"2024-01-06T00:00:00\", \"CLS\": \"needs improvement (0.1 < CLS <= 0.25)\", \"pct\": 0.08050537109375}, {\"last_date\": \"2023-07-22T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.017425537109375}, {\"last_date\": \"2023-07-29T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.016937255859375}, {\"last_date\": \"2023-08-05T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.016632080078125}, {\"last_date\": \"2023-08-12T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.015625}, {\"last_date\": \"2023-08-19T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.019012451171875}, {\"last_date\": \"2023-08-26T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.022125244140625}, {\"last_date\": \"2023-09-02T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.024139404296875}, {\"last_date\": \"2023-09-09T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.0257568359375}, {\"last_date\": \"2023-09-16T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.027008056640625}, {\"last_date\": \"2023-09-23T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.026641845703125}, {\"last_date\": \"2023-09-30T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.0284423828125}, {\"last_date\": \"2023-10-07T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.028839111328125}, {\"last_date\": \"2023-10-14T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.032928466796875}, {\"last_date\": \"2023-10-21T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.03863525390625}, {\"last_date\": \"2023-10-28T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.03521728515625}, {\"last_date\": \"2023-11-04T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.0355224609375}, {\"last_date\": \"2023-11-11T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.0322265625}, {\"last_date\": \"2023-11-18T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.031829833984375}, {\"last_date\": \"2023-11-25T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.029541015625}, {\"last_date\": \"2023-12-02T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.02703857421875}, {\"last_date\": \"2023-12-09T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.0250244140625}, {\"last_date\": \"2023-12-16T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.02374267578125}, {\"last_date\": \"2023-12-23T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.022735595703125}, {\"last_date\": \"2023-12-30T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.02154541015625}, {\"last_date\": \"2024-01-06T00:00:00\", \"CLS\": \"poor (CLS > 0.25)\", \"pct\": 0.022216796875}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>TTFB (experimental_time_to_first_byte)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/ttfb/\" target=\"_blank\">web.dev/ttfb/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-bc84c3d1f6f54db69ebebfd47644915a\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-bc84c3d1f6f54db69ebebfd47644915a\") {\n",
" outputDiv = document.getElementById(\"altair-viz-bc84c3d1f6f54db69ebebfd47644915a\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-f38a801bb39a10a61ae7d367a693d99e\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-66d2c0e7c7ed2554f2ebbbef68144995\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-3334355c3fb9c83694f11cf20fa5a61a\"}, \"mark\": {\"type\": \"rect\", \"color\": \"red\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-34e905fbc610b6b922e2a75023a53d30\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"TTFB\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-f38a801bb39a10a61ae7d367a693d99e\": [{\"y\": 0, \"y2\": 800.0}], \"data-66d2c0e7c7ed2554f2ebbbef68144995\": [{\"y\": 800.0, \"y2\": 1800.0}], \"data-3334355c3fb9c83694f11cf20fa5a61a\": [{\"y\": 1800.0, \"y2\": 2640.0}], \"data-34e905fbc610b6b922e2a75023a53d30\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1602}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1631}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1625}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1571}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1446}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1307}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1231}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1210}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1193}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1114}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1028}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1020}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1308}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 1815}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2080}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2230}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2286}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2309}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2330}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2356}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2377}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2373}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2375}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2400}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"TTFB\": 2397}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-4e7eba07cc944f558b6043f3a548ddcb\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-4e7eba07cc944f558b6043f3a548ddcb\") {\n",
" outputDiv = document.getElementById(\"altair-viz-4e7eba07cc944f558b6043f3a548ddcb\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-0a53209893bb078260029d482a543718\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"TTFB\", \"scale\": {\"domain\": [\"poor (TTFB > 1800.0)\", \"needs improvement (800.0 < TTFB <= 1800.0)\", \"good (TTFB <= 800.0)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"TTFB\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-0a53209893bb078260029d482a543718\": [{\"last_date\": \"2023-07-22T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.533477783203125}, {\"last_date\": \"2023-07-29T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.52044677734375}, {\"last_date\": \"2023-08-05T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.523956298828125}, {\"last_date\": \"2023-08-12T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.53485107421875}, {\"last_date\": \"2023-08-19T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.57513427734375}, {\"last_date\": \"2023-08-26T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.6153564453125}, {\"last_date\": \"2023-09-02T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.63525390625}, {\"last_date\": \"2023-09-09T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.641693115234375}, {\"last_date\": \"2023-09-16T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.643798828125}, {\"last_date\": \"2023-09-23T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.666015625}, {\"last_date\": \"2023-09-30T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.689300537109375}, {\"last_date\": \"2023-10-07T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.690338134765625}, {\"last_date\": \"2023-10-14T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.60235595703125}, {\"last_date\": \"2023-10-21T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.41168212890625}, {\"last_date\": \"2023-10-28T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.243194580078125}, {\"last_date\": \"2023-11-04T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.149383544921875}, {\"last_date\": \"2023-11-11T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.107147216796875}, {\"last_date\": \"2023-11-18T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.09954833984375}, {\"last_date\": \"2023-11-25T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.0931396484375}, {\"last_date\": \"2023-12-02T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.0853271484375}, {\"last_date\": \"2023-12-09T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.080047607421875}, {\"last_date\": \"2023-12-16T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.07794189453125}, {\"last_date\": \"2023-12-23T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.078125}, {\"last_date\": \"2023-12-30T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.074920654296875}, {\"last_date\": \"2024-01-06T00:00:00\", \"TTFB\": \"good (TTFB <= 800.0)\", \"pct\": 0.079620361328125}, {\"last_date\": \"2023-07-22T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.27471923828125}, {\"last_date\": \"2023-07-29T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.2825927734375}, {\"last_date\": \"2023-08-05T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.27923583984375}, {\"last_date\": \"2023-08-12T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.27874755859375}, {\"last_date\": \"2023-08-19T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.260650634765625}, {\"last_date\": \"2023-08-26T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.2431640625}, {\"last_date\": \"2023-09-02T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.2379150390625}, {\"last_date\": \"2023-09-09T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.23431396484375}, {\"last_date\": \"2023-09-16T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.2337646484375}, {\"last_date\": \"2023-09-23T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.22137451171875}, {\"last_date\": \"2023-09-30T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.207977294921875}, {\"last_date\": \"2023-10-07T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.20855712890625}, {\"last_date\": \"2023-10-14T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.2540283203125}, {\"last_date\": \"2023-10-21T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.34912109375}, {\"last_date\": \"2023-10-28T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.432342529296875}, {\"last_date\": \"2023-11-04T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.469573974609375}, {\"last_date\": \"2023-11-11T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.483184814453125}, {\"last_date\": \"2023-11-18T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.481109619140625}, {\"last_date\": \"2023-11-25T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.48248291015625}, {\"last_date\": \"2023-12-02T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.484283447265625}, {\"last_date\": \"2023-12-09T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.482177734375}, {\"last_date\": \"2023-12-16T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.486236572265625}, {\"last_date\": \"2023-12-23T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.48663330078125}, {\"last_date\": \"2023-12-30T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.482666015625}, {\"last_date\": \"2024-01-06T00:00:00\", \"TTFB\": \"needs improvement (800.0 < TTFB <= 1800.0)\", \"pct\": 0.482574462890625}, {\"last_date\": \"2023-07-22T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.191802978515625}, {\"last_date\": \"2023-07-29T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.19696044921875}, {\"last_date\": \"2023-08-05T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.196807861328125}, {\"last_date\": \"2023-08-12T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.1864013671875}, {\"last_date\": \"2023-08-19T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.164215087890625}, {\"last_date\": \"2023-08-26T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.1414794921875}, {\"last_date\": \"2023-09-02T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.1268310546875}, {\"last_date\": \"2023-09-09T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.123992919921875}, {\"last_date\": \"2023-09-16T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.1224365234375}, {\"last_date\": \"2023-09-23T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.11260986328125}, {\"last_date\": \"2023-09-30T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.10272216796875}, {\"last_date\": \"2023-10-07T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.101104736328125}, {\"last_date\": \"2023-10-14T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.14361572265625}, {\"last_date\": \"2023-10-21T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.23919677734375}, {\"last_date\": \"2023-10-28T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.324462890625}, {\"last_date\": \"2023-11-04T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.38104248046875}, {\"last_date\": \"2023-11-11T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.40966796875}, {\"last_date\": \"2023-11-18T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.419342041015625}, {\"last_date\": \"2023-11-25T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.42437744140625}, {\"last_date\": \"2023-12-02T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.430389404296875}, {\"last_date\": \"2023-12-09T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.437774658203125}, {\"last_date\": \"2023-12-16T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.435821533203125}, {\"last_date\": \"2023-12-23T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.43524169921875}, {\"last_date\": \"2023-12-30T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.442413330078125}, {\"last_date\": \"2024-01-06T00:00:00\", \"TTFB\": \"poor (TTFB > 1800.0)\", \"pct\": 0.43780517578125}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>FCP (first_contentful_paint)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/fcp/\" target=\"_blank\">web.dev/fcp/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-5f2938571c374f10b8373102ccabd68f\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-5f2938571c374f10b8373102ccabd68f\") {\n",
" outputDiv = document.getElementById(\"altair-viz-5f2938571c374f10b8373102ccabd68f\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-1609ba7b92a2ad89f5a53754223366d5\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-c6a2fba5cfb2a6029116993302374c8e\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-c05c57e981cdeb82fc78458c834ec995\"}, \"mark\": {\"type\": \"rect\", \"color\": \"red\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-0b6615487f83dc04245a4fb10fd8e6a3\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"FCP\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-1609ba7b92a2ad89f5a53754223366d5\": [{\"y\": 0, \"y2\": 1800.0}], \"data-c6a2fba5cfb2a6029116993302374c8e\": [{\"y\": 1800.0, \"y2\": 3000.0}], \"data-c05c57e981cdeb82fc78458c834ec995\": [{\"y\": 3000.0, \"y2\": 4387.900000000001}], \"data-0b6615487f83dc04245a4fb10fd8e6a3\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2344}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2399}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2394}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2307}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2100}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1913}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1818}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1830}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1857}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1770}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1713}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"FCP\": 1698}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2038}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"FCP\": 2888}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3386}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3619}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3682}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3703}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3775}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3894}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3989}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3971}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3947}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3924}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"FCP\": 3864}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-432f808c40b84b82812211e7f6ef0ae8\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-432f808c40b84b82812211e7f6ef0ae8\") {\n",
" outputDiv = document.getElementById(\"altair-viz-432f808c40b84b82812211e7f6ef0ae8\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-4b70a3da425ef410b24ffd76bed1e00e\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"FCP\", \"scale\": {\"domain\": [\"poor (FCP > 3000.0)\", \"needs improvement (1800.0 < FCP <= 3000.0)\", \"good (FCP <= 1800.0)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"FCP\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-4b70a3da425ef410b24ffd76bed1e00e\": [{\"last_date\": \"2023-07-22T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.66949462890625}, {\"last_date\": \"2023-07-29T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.65679931640625}, {\"last_date\": \"2023-08-05T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.66107177734375}, {\"last_date\": \"2023-08-12T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.673614501953125}, {\"last_date\": \"2023-08-19T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.70758056640625}, {\"last_date\": \"2023-08-26T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.73956298828125}, {\"last_date\": \"2023-09-02T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.753875732421875}, {\"last_date\": \"2023-09-09T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.751922607421875}, {\"last_date\": \"2023-09-16T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.746734619140625}, {\"last_date\": \"2023-09-23T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.76123046875}, {\"last_date\": \"2023-09-30T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.772613525390625}, {\"last_date\": \"2023-10-07T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.775054931640625}, {\"last_date\": \"2023-10-14T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.71527099609375}, {\"last_date\": \"2023-10-21T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.565765380859375}, {\"last_date\": \"2023-10-28T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.41802978515625}, {\"last_date\": \"2023-11-04T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.313873291015625}, {\"last_date\": \"2023-11-11T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.270538330078125}, {\"last_date\": \"2023-11-18T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.263702392578125}, {\"last_date\": \"2023-11-25T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.25274658203125}, {\"last_date\": \"2023-12-02T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.231231689453125}, {\"last_date\": \"2023-12-09T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.22064208984375}, {\"last_date\": \"2023-12-16T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.22161865234375}, {\"last_date\": \"2023-12-23T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.22576904296875}, {\"last_date\": \"2023-12-30T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.230010986328125}, {\"last_date\": \"2024-01-06T00:00:00\", \"FCP\": \"good (FCP <= 1800.0)\", \"pct\": 0.242706298828125}, {\"last_date\": \"2023-07-22T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.172637939453125}, {\"last_date\": \"2023-07-29T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.178375244140625}, {\"last_date\": \"2023-08-05T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.1749267578125}, {\"last_date\": \"2023-08-12T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.172271728515625}, {\"last_date\": \"2023-08-19T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.157440185546875}, {\"last_date\": \"2023-08-26T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.14410400390625}, {\"last_date\": \"2023-09-02T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.13970947265625}, {\"last_date\": \"2023-09-09T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.14056396484375}, {\"last_date\": \"2023-09-16T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.146026611328125}, {\"last_date\": \"2023-09-23T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.137176513671875}, {\"last_date\": \"2023-09-30T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.131378173828125}, {\"last_date\": \"2023-10-07T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.13055419921875}, {\"last_date\": \"2023-10-14T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.153106689453125}, {\"last_date\": \"2023-10-21T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.20989990234375}, {\"last_date\": \"2023-10-28T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.27203369140625}, {\"last_date\": \"2023-11-04T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.31549072265625}, {\"last_date\": \"2023-11-11T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.338043212890625}, {\"last_date\": \"2023-11-18T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.3399658203125}, {\"last_date\": \"2023-11-25T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.3375244140625}, {\"last_date\": \"2023-12-02T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.33135986328125}, {\"last_date\": \"2023-12-09T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.326446533203125}, {\"last_date\": \"2023-12-16T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.32958984375}, {\"last_date\": \"2023-12-23T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.331207275390625}, {\"last_date\": \"2023-12-30T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.335845947265625}, {\"last_date\": \"2024-01-06T00:00:00\", \"FCP\": \"needs improvement (1800.0 < FCP <= 3000.0)\", \"pct\": 0.339019775390625}, {\"last_date\": \"2023-07-22T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.157867431640625}, {\"last_date\": \"2023-07-29T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.164825439453125}, {\"last_date\": \"2023-08-05T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.16400146484375}, {\"last_date\": \"2023-08-12T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.15411376953125}, {\"last_date\": \"2023-08-19T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.134979248046875}, {\"last_date\": \"2023-08-26T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.1163330078125}, {\"last_date\": \"2023-09-02T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.106414794921875}, {\"last_date\": \"2023-09-09T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.107513427734375}, {\"last_date\": \"2023-09-16T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.10723876953125}, {\"last_date\": \"2023-09-23T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.101593017578125}, {\"last_date\": \"2023-09-30T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.09600830078125}, {\"last_date\": \"2023-10-07T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.094390869140625}, {\"last_date\": \"2023-10-14T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.131622314453125}, {\"last_date\": \"2023-10-21T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.224334716796875}, {\"last_date\": \"2023-10-28T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.3099365234375}, {\"last_date\": \"2023-11-04T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.370635986328125}, {\"last_date\": \"2023-11-11T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.39141845703125}, {\"last_date\": \"2023-11-18T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.396331787109375}, {\"last_date\": \"2023-11-25T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.40972900390625}, {\"last_date\": \"2023-12-02T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.437408447265625}, {\"last_date\": \"2023-12-09T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.452911376953125}, {\"last_date\": \"2023-12-16T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.44879150390625}, {\"last_date\": \"2023-12-23T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.443023681640625}, {\"last_date\": \"2023-12-30T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.43414306640625}, {\"last_date\": \"2024-01-06T00:00:00\", \"FCP\": \"poor (FCP > 3000.0)\", \"pct\": 0.41827392578125}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>FID (first_input_delay)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/fid/\" target=\"_blank\">web.dev/fid/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-c2754654dcc74b30afd2df7b571628aa\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-c2754654dcc74b30afd2df7b571628aa\") {\n",
" outputDiv = document.getElementById(\"altair-viz-c2754654dcc74b30afd2df7b571628aa\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-24b8555f9bda5812f93996aec83999d7\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-f94c5c66ca9c6840b1a9e7fb44ce53e6\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-4215b34874b57539474f3950903a1b19\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"FID\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-24b8555f9bda5812f93996aec83999d7\": [{\"y\": 0, \"y2\": 100.0}], \"data-f94c5c66ca9c6840b1a9e7fb44ce53e6\": [{\"y\": 100.0, \"y2\": 300.0}], \"data-4215b34874b57539474f3950903a1b19\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"FID\": 17}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"FID\": 18}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"FID\": 18}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"FID\": 18}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"FID\": 17}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"FID\": 15}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"FID\": 15}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"FID\": 15}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"FID\": 16}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"FID\": 16}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"FID\": 16}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"FID\": 15}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"FID\": 16}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"FID\": 27}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"FID\": 58}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"FID\": 87}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"FID\": 98}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"FID\": 101}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"FID\": 112}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"FID\": 127}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"FID\": 138}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"FID\": 137}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"FID\": 134}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"FID\": 131}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"FID\": 124}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-b888d2200f764cff9ff398298f54747e\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-b888d2200f764cff9ff398298f54747e\") {\n",
" outputDiv = document.getElementById(\"altair-viz-b888d2200f764cff9ff398298f54747e\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-e50568b42183ccfb881f358c3822abd5\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"FID\", \"scale\": {\"domain\": [\"poor (FID > 300.0)\", \"needs improvement (100.0 < FID <= 300.0)\", \"good (FID <= 100.0)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"FID\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-e50568b42183ccfb881f358c3822abd5\": [{\"last_date\": \"2023-07-22T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.918609619140625}, {\"last_date\": \"2023-07-29T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.914215087890625}, {\"last_date\": \"2023-08-05T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.912811279296875}, {\"last_date\": \"2023-08-12T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.913330078125}, {\"last_date\": \"2023-08-19T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.921295166015625}, {\"last_date\": \"2023-08-26T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.9273681640625}, {\"last_date\": \"2023-09-02T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.927398681640625}, {\"last_date\": \"2023-09-09T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.928497314453125}, {\"last_date\": \"2023-09-16T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.927490234375}, {\"last_date\": \"2023-09-23T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.92938232421875}, {\"last_date\": \"2023-09-30T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.9351806640625}, {\"last_date\": \"2023-10-07T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.937896728515625}, {\"last_date\": \"2023-10-14T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.916900634765625}, {\"last_date\": \"2023-10-21T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.86907958984375}, {\"last_date\": \"2023-10-28T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.817047119140625}, {\"last_date\": \"2023-11-04T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.7738037109375}, {\"last_date\": \"2023-11-11T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.7586669921875}, {\"last_date\": \"2023-11-18T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.75372314453125}, {\"last_date\": \"2023-11-25T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.73260498046875}, {\"last_date\": \"2023-12-02T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.70672607421875}, {\"last_date\": \"2023-12-09T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.687408447265625}, {\"last_date\": \"2023-12-16T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.689056396484375}, {\"last_date\": \"2023-12-23T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.69390869140625}, {\"last_date\": \"2023-12-30T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.700042724609375}, {\"last_date\": \"2024-01-06T00:00:00\", \"FID\": \"good (FID <= 100.0)\", \"pct\": 0.711273193359375}, {\"last_date\": \"2023-07-22T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.05804443359375}, {\"last_date\": \"2023-07-29T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.061553955078125}, {\"last_date\": \"2023-08-05T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.0615234375}, {\"last_date\": \"2023-08-12T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.061737060546875}, {\"last_date\": \"2023-08-19T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.0560302734375}, {\"last_date\": \"2023-08-26T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.05126953125}, {\"last_date\": \"2023-09-02T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.05096435546875}, {\"last_date\": \"2023-09-09T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.049957275390625}, {\"last_date\": \"2023-09-16T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.050750732421875}, {\"last_date\": \"2023-09-23T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.0506591796875}, {\"last_date\": \"2023-09-30T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.047271728515625}, {\"last_date\": \"2023-10-07T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.04547119140625}, {\"last_date\": \"2023-10-14T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.056427001953125}, {\"last_date\": \"2023-10-21T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.084259033203125}, {\"last_date\": \"2023-10-28T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.115264892578125}, {\"last_date\": \"2023-11-04T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.142730712890625}, {\"last_date\": \"2023-11-11T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.154052734375}, {\"last_date\": \"2023-11-18T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.157989501953125}, {\"last_date\": \"2023-11-25T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.170806884765625}, {\"last_date\": \"2023-12-02T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.184661865234375}, {\"last_date\": \"2023-12-09T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.194061279296875}, {\"last_date\": \"2023-12-16T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.192474365234375}, {\"last_date\": \"2023-12-23T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.190155029296875}, {\"last_date\": \"2023-12-30T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.18896484375}, {\"last_date\": \"2024-01-06T00:00:00\", \"FID\": \"needs improvement (100.0 < FID <= 300.0)\", \"pct\": 0.184417724609375}, {\"last_date\": \"2023-07-22T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.023345947265625}, {\"last_date\": \"2023-07-29T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.02423095703125}, {\"last_date\": \"2023-08-05T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.025665283203125}, {\"last_date\": \"2023-08-12T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.024932861328125}, {\"last_date\": \"2023-08-19T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.022674560546875}, {\"last_date\": \"2023-08-26T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.0213623046875}, {\"last_date\": \"2023-09-02T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.021636962890625}, {\"last_date\": \"2023-09-09T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.02154541015625}, {\"last_date\": \"2023-09-16T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.021759033203125}, {\"last_date\": \"2023-09-23T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.01995849609375}, {\"last_date\": \"2023-09-30T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.017547607421875}, {\"last_date\": \"2023-10-07T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.016632080078125}, {\"last_date\": \"2023-10-14T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.02667236328125}, {\"last_date\": \"2023-10-21T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.046661376953125}, {\"last_date\": \"2023-10-28T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.06768798828125}, {\"last_date\": \"2023-11-04T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.083465576171875}, {\"last_date\": \"2023-11-11T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.0872802734375}, {\"last_date\": \"2023-11-18T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.088287353515625}, {\"last_date\": \"2023-11-25T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.096588134765625}, {\"last_date\": \"2023-12-02T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.108612060546875}, {\"last_date\": \"2023-12-09T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.1185302734375}, {\"last_date\": \"2023-12-16T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.11846923828125}, {\"last_date\": \"2023-12-23T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.115936279296875}, {\"last_date\": \"2023-12-30T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.110992431640625}, {\"last_date\": \"2024-01-06T00:00:00\", \"FID\": \"poor (FID > 300.0)\", \"pct\": 0.10430908203125}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>form_factors</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-2bc37df304b34f0c84b3d2e303e0860e\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-2bc37df304b34f0c84b3d2e303e0860e\") {\n",
" outputDiv = document.getElementById(\"altair-viz-2bc37df304b34f0c84b3d2e303e0860e\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-14104119e0ca60927461d4f66c5330bd\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"FF\", \"type\": \"nominal\"}, \"order\": {\"field\": \"FF\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-14104119e0ca60927461d4f66c5330bd\": [{\"last_date\": \"2023-07-22T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.308349609375}, {\"last_date\": \"2023-07-29T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.284637451171875}, {\"last_date\": \"2023-08-05T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.28143310546875}, {\"last_date\": \"2023-08-12T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.260162353515625}, {\"last_date\": \"2023-08-19T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.291351318359375}, {\"last_date\": \"2023-08-26T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.33123779296875}, {\"last_date\": \"2023-09-02T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.352935791015625}, {\"last_date\": \"2023-09-09T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.374969482421875}, {\"last_date\": \"2023-09-16T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.374359130859375}, {\"last_date\": \"2023-09-23T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.363616943359375}, {\"last_date\": \"2023-09-30T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.378662109375}, {\"last_date\": \"2023-10-07T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.386474609375}, {\"last_date\": \"2023-10-14T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.375457763671875}, {\"last_date\": \"2023-10-21T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.319488525390625}, {\"last_date\": \"2023-10-28T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.211456298828125}, {\"last_date\": \"2023-11-04T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.142120361328125}, {\"last_date\": \"2023-11-11T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.100067138671875}, {\"last_date\": \"2023-11-18T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.087371826171875}, {\"last_date\": \"2023-11-25T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.0758056640625}, {\"last_date\": \"2023-12-02T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.05731201171875}, {\"last_date\": \"2023-12-09T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.047698974609375}, {\"last_date\": \"2023-12-16T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.04119873046875}, {\"last_date\": \"2023-12-23T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.037994384765625}, {\"last_date\": \"2023-12-30T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.0343017578125}, {\"last_date\": \"2024-01-06T00:00:00\", \"FF\": \"desktop\", \"pct\": 0.04241943359375}, {\"last_date\": \"2023-07-22T00:00:00\", \"FF\": \"phone\", \"pct\": 0.691619873046875}, {\"last_date\": \"2023-07-29T00:00:00\", \"FF\": \"phone\", \"pct\": 0.71533203125}, {\"last_date\": \"2023-08-05T00:00:00\", \"FF\": \"phone\", \"pct\": 0.718536376953125}, {\"last_date\": \"2023-08-12T00:00:00\", \"FF\": \"phone\", \"pct\": 0.724700927734375}, {\"last_date\": \"2023-08-19T00:00:00\", \"FF\": \"phone\", \"pct\": 0.68829345703125}, {\"last_date\": \"2023-08-26T00:00:00\", \"FF\": \"phone\", \"pct\": 0.643798828125}, {\"last_date\": \"2023-09-02T00:00:00\", \"FF\": \"phone\", \"pct\": 0.62322998046875}, {\"last_date\": \"2023-09-09T00:00:00\", \"FF\": \"phone\", \"pct\": 0.59759521484375}, {\"last_date\": \"2023-09-16T00:00:00\", \"FF\": \"phone\", \"pct\": 0.594390869140625}, {\"last_date\": \"2023-09-23T00:00:00\", \"FF\": \"phone\", \"pct\": 0.59423828125}, {\"last_date\": \"2023-09-30T00:00:00\", \"FF\": \"phone\", \"pct\": 0.566070556640625}, {\"last_date\": \"2023-10-07T00:00:00\", \"FF\": \"phone\", \"pct\": 0.557708740234375}, {\"last_date\": \"2023-10-14T00:00:00\", \"FF\": \"phone\", \"pct\": 0.566436767578125}, {\"last_date\": \"2023-10-21T00:00:00\", \"FF\": \"phone\", \"pct\": 0.62945556640625}, {\"last_date\": \"2023-10-28T00:00:00\", \"FF\": \"phone\", \"pct\": 0.754425048828125}, {\"last_date\": \"2023-11-04T00:00:00\", \"FF\": \"phone\", \"pct\": 0.828826904296875}, {\"last_date\": \"2023-11-11T00:00:00\", \"FF\": \"phone\", \"pct\": 0.8798828125}, {\"last_date\": \"2023-11-18T00:00:00\", \"FF\": \"phone\", \"pct\": 0.89422607421875}, {\"last_date\": \"2023-11-25T00:00:00\", \"FF\": \"phone\", \"pct\": 0.905364990234375}, {\"last_date\": \"2023-12-02T00:00:00\", \"FF\": \"phone\", \"pct\": 0.922149658203125}, {\"last_date\": \"2023-12-09T00:00:00\", \"FF\": \"phone\", \"pct\": 0.9306640625}, {\"last_date\": \"2023-12-16T00:00:00\", \"FF\": \"phone\", \"pct\": 0.9366455078125}, {\"last_date\": \"2023-12-23T00:00:00\", \"FF\": \"phone\", \"pct\": 0.93914794921875}, {\"last_date\": \"2023-12-30T00:00:00\", \"FF\": \"phone\", \"pct\": 0.939239501953125}, {\"last_date\": \"2024-01-06T00:00:00\", \"FF\": \"phone\", \"pct\": 0.929534912109375}, {\"last_date\": \"2023-07-22T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0}, {\"last_date\": \"2023-07-29T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0}, {\"last_date\": \"2023-08-05T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0}, {\"last_date\": \"2023-08-12T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.015106201171875}, {\"last_date\": \"2023-08-19T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.020294189453125}, {\"last_date\": \"2023-08-26T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.02490234375}, {\"last_date\": \"2023-09-02T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0238037109375}, {\"last_date\": \"2023-09-09T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.02740478515625}, {\"last_date\": \"2023-09-16T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.03118896484375}, {\"last_date\": \"2023-09-23T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.042083740234375}, {\"last_date\": \"2023-09-30T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.05523681640625}, {\"last_date\": \"2023-10-07T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0557861328125}, {\"last_date\": \"2023-10-14T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.05804443359375}, {\"last_date\": \"2023-10-21T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.051025390625}, {\"last_date\": \"2023-10-28T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.034088134765625}, {\"last_date\": \"2023-11-04T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.02899169921875}, {\"last_date\": \"2023-11-11T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.019989013671875}, {\"last_date\": \"2023-11-18T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.01837158203125}, {\"last_date\": \"2023-11-25T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.018798828125}, {\"last_date\": \"2023-12-02T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.020477294921875}, {\"last_date\": \"2023-12-09T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0216064453125}, {\"last_date\": \"2023-12-16T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.0220947265625}, {\"last_date\": \"2023-12-23T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.022796630859375}, {\"last_date\": \"2023-12-30T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.026397705078125}, {\"last_date\": \"2024-01-06T00:00:00\", \"FF\": \"tablet\", \"pct\": 0.027984619140625}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>INP (interaction_to_next_paint)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/inp/\" target=\"_blank\">web.dev/inp/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-bc91a2999ff64ce897130f27c47cd7fa\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-bc91a2999ff64ce897130f27c47cd7fa\") {\n",
" outputDiv = document.getElementById(\"altair-viz-bc91a2999ff64ce897130f27c47cd7fa\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-da254b0f6700be6a177b82ced9fe814b\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-915e9927e1e800c68281fb6417e14b2e\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-1c32755135b98390892c373c9fdc9a5e\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"INP\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-da254b0f6700be6a177b82ced9fe814b\": [{\"y\": 0, \"y2\": 200.0}], \"data-915e9927e1e800c68281fb6417e14b2e\": [{\"y\": 200.0, \"y2\": 500.0}], \"data-1c32755135b98390892c373c9fdc9a5e\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"INP\": 216}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"INP\": 225}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"INP\": 226}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"INP\": 229}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"INP\": 220}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"INP\": 209}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"INP\": 205}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"INP\": 202}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"INP\": 197}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"INP\": 189}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"INP\": 177}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"INP\": 168}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"INP\": 173}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"INP\": 198}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"INP\": 245}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"INP\": 292}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"INP\": 319}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"INP\": 325}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"INP\": 341}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"INP\": 369}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"INP\": 389}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"INP\": 389}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"INP\": 382}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"INP\": 376}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"INP\": 358}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-1d992f2bae1b4080b16f47f7af113dd4\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-1d992f2bae1b4080b16f47f7af113dd4\") {\n",
" outputDiv = document.getElementById(\"altair-viz-1d992f2bae1b4080b16f47f7af113dd4\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-dc76d7b4ea78f291a54230f0b1c0c822\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"INP\", \"scale\": {\"domain\": [\"poor (INP > 500.0)\", \"needs improvement (200.0 < INP <= 500.0)\", \"good (INP <= 200.0)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"INP\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-dc76d7b4ea78f291a54230f0b1c0c822\": [{\"last_date\": \"2023-07-22T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.72900390625}, {\"last_date\": \"2023-07-29T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.715362548828125}, {\"last_date\": \"2023-08-05T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.713470458984375}, {\"last_date\": \"2023-08-12T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.70849609375}, {\"last_date\": \"2023-08-19T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.726470947265625}, {\"last_date\": \"2023-08-26T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.738494873046875}, {\"last_date\": \"2023-09-02T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.745941162109375}, {\"last_date\": \"2023-09-09T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.7491455078125}, {\"last_date\": \"2023-09-16T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.7576904296875}, {\"last_date\": \"2023-09-23T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.768524169921875}, {\"last_date\": \"2023-09-30T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.78460693359375}, {\"last_date\": \"2023-10-07T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.795806884765625}, {\"last_date\": \"2023-10-14T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.787841796875}, {\"last_date\": \"2023-10-21T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.754119873046875}, {\"last_date\": \"2023-10-28T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.698089599609375}, {\"last_date\": \"2023-11-04T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.65313720703125}, {\"last_date\": \"2023-11-11T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.624969482421875}, {\"last_date\": \"2023-11-18T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.6224365234375}, {\"last_date\": \"2023-11-25T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.600494384765625}, {\"last_date\": \"2023-12-02T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.572357177734375}, {\"last_date\": \"2023-12-09T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.5494384765625}, {\"last_date\": \"2023-12-16T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.5462646484375}, {\"last_date\": \"2023-12-23T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.5484619140625}, {\"last_date\": \"2023-12-30T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.547637939453125}, {\"last_date\": \"2024-01-06T00:00:00\", \"INP\": \"good (INP <= 200.0)\", \"pct\": 0.566131591796875}, {\"last_date\": \"2023-07-22T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.209320068359375}, {\"last_date\": \"2023-07-29T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.2183837890625}, {\"last_date\": \"2023-08-05T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.220062255859375}, {\"last_date\": \"2023-08-12T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.22381591796875}, {\"last_date\": \"2023-08-19T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.209259033203125}, {\"last_date\": \"2023-08-26T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.197052001953125}, {\"last_date\": \"2023-09-02T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.19000244140625}, {\"last_date\": \"2023-09-09T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.18548583984375}, {\"last_date\": \"2023-09-16T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.179840087890625}, {\"last_date\": \"2023-09-23T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.170928955078125}, {\"last_date\": \"2023-09-30T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.15924072265625}, {\"last_date\": \"2023-10-07T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.149017333984375}, {\"last_date\": \"2023-10-14T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.1484375}, {\"last_date\": \"2023-10-21T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.157318115234375}, {\"last_date\": \"2023-10-28T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.177093505859375}, {\"last_date\": \"2023-11-04T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.1988525390625}, {\"last_date\": \"2023-11-11T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.212554931640625}, {\"last_date\": \"2023-11-18T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.21649169921875}, {\"last_date\": \"2023-11-25T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.23101806640625}, {\"last_date\": \"2023-12-02T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.246612548828125}, {\"last_date\": \"2023-12-09T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.2591552734375}, {\"last_date\": \"2023-12-16T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.264007568359375}, {\"last_date\": \"2023-12-23T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.26605224609375}, {\"last_date\": \"2023-12-30T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.269805908203125}, {\"last_date\": \"2024-01-06T00:00:00\", \"INP\": \"needs improvement (200.0 < INP <= 500.0)\", \"pct\": 0.263031005859375}, {\"last_date\": \"2023-07-22T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.061676025390625}, {\"last_date\": \"2023-07-29T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.066253662109375}, {\"last_date\": \"2023-08-05T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.06646728515625}, {\"last_date\": \"2023-08-12T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.06768798828125}, {\"last_date\": \"2023-08-19T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.06427001953125}, {\"last_date\": \"2023-08-26T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.064453125}, {\"last_date\": \"2023-09-02T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.064056396484375}, {\"last_date\": \"2023-09-09T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.06536865234375}, {\"last_date\": \"2023-09-16T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.062469482421875}, {\"last_date\": \"2023-09-23T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.060546875}, {\"last_date\": \"2023-09-30T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.05615234375}, {\"last_date\": \"2023-10-07T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.05517578125}, {\"last_date\": \"2023-10-14T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.063720703125}, {\"last_date\": \"2023-10-21T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.08856201171875}, {\"last_date\": \"2023-10-28T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.12481689453125}, {\"last_date\": \"2023-11-04T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.14801025390625}, {\"last_date\": \"2023-11-11T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.1624755859375}, {\"last_date\": \"2023-11-18T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.16107177734375}, {\"last_date\": \"2023-11-25T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.168487548828125}, {\"last_date\": \"2023-12-02T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.1810302734375}, {\"last_date\": \"2023-12-09T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.19140625}, {\"last_date\": \"2023-12-16T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.189727783203125}, {\"last_date\": \"2023-12-23T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.18548583984375}, {\"last_date\": \"2023-12-30T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.18255615234375}, {\"last_date\": \"2024-01-06T00:00:00\", \"INP\": \"poor (INP > 500.0)\", \"pct\": 0.17083740234375}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"<h2>LCP (largest_contentful_paint)</h2>"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"<IPython.core.display.HTML object>"
],
"text/html": [
"Learn more at <a href=\"https://web.dev/lcp/\" target=\"_blank\">web.dev/lcp/</a>."
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-5ed6bceeea0f412a9d11a711b377c122\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-5ed6bceeea0f412a9d11a711b377c122\") {\n",
" outputDiv = document.getElementById(\"altair-viz-5ed6bceeea0f412a9d11a711b377c122\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}}, \"layer\": [{\"data\": {\"name\": \"data-5fd409dd49fd1d0968cbe358aff1dbcf\"}, \"mark\": {\"type\": \"rect\", \"color\": \"green\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-88be1ea71d106afe4707c119656d9854\"}, \"mark\": {\"type\": \"rect\", \"color\": \"orange\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-97ba9bd50ad4f61586f3b6ba3acc1229\"}, \"mark\": {\"type\": \"rect\", \"color\": \"red\", \"opacity\": 0.2}, \"encoding\": {\"y\": {\"axis\": {\"title\": null}, \"field\": \"y\", \"type\": \"quantitative\"}, \"y2\": {\"field\": \"y2\"}}}, {\"data\": {\"name\": \"data-a1810d65667564ad9d2ec2bc434ffb3a\"}, \"mark\": \"line\", \"encoding\": {\"color\": {\"field\": \"percentile\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"field\": \"LCP\", \"type\": \"quantitative\"}}}], \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-5fd409dd49fd1d0968cbe358aff1dbcf\": [{\"y\": 0, \"y2\": 2500.0}], \"data-88be1ea71d106afe4707c119656d9854\": [{\"y\": 2500.0, \"y2\": 4000.0}], \"data-97ba9bd50ad4f61586f3b6ba3acc1229\": [{\"y\": 4000.0, \"y2\": 5218.400000000001}], \"data-a1810d65667564ad9d2ec2bc434ffb3a\": [{\"last_date\": \"2023-07-22T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2531}, {\"last_date\": \"2023-07-29T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2599}, {\"last_date\": \"2023-08-05T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2602}, {\"last_date\": \"2023-08-12T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2512}, {\"last_date\": \"2023-08-19T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2292}, {\"last_date\": \"2023-08-26T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2083}, {\"last_date\": \"2023-09-02T00:00:00\", \"percentile\": \"p75\", \"LCP\": 1962}, {\"last_date\": \"2023-09-09T00:00:00\", \"percentile\": \"p75\", \"LCP\": 1983}, {\"last_date\": \"2023-09-16T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2033}, {\"last_date\": \"2023-09-23T00:00:00\", \"percentile\": \"p75\", \"LCP\": 1960}, {\"last_date\": \"2023-09-30T00:00:00\", \"percentile\": \"p75\", \"LCP\": 1920}, {\"last_date\": \"2023-10-07T00:00:00\", \"percentile\": \"p75\", \"LCP\": 1902}, {\"last_date\": \"2023-10-14T00:00:00\", \"percentile\": \"p75\", \"LCP\": 2211}, {\"last_date\": \"2023-10-21T00:00:00\", \"percentile\": \"p75\", \"LCP\": 3012}, {\"last_date\": \"2023-10-28T00:00:00\", \"percentile\": \"p75\", \"LCP\": 3639}, {\"last_date\": \"2023-11-04T00:00:00\", \"percentile\": \"p75\", \"LCP\": 3991}, {\"last_date\": \"2023-11-11T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4110}, {\"last_date\": \"2023-11-18T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4178}, {\"last_date\": \"2023-11-25T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4348}, {\"last_date\": \"2023-12-02T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4590}, {\"last_date\": \"2023-12-09T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4744}, {\"last_date\": \"2023-12-16T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4707}, {\"last_date\": \"2023-12-23T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4650}, {\"last_date\": \"2023-12-30T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4566}, {\"last_date\": \"2024-01-06T00:00:00\", \"percentile\": \"p75\", \"LCP\": 4461}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.LayerChart(...)"
]
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/html": [
"\n",
"<div id=\"altair-viz-a42e1478df4e4da99dca1f0bcdb8e420\"></div>\n",
"<script type=\"text/javascript\">\n",
" var VEGA_DEBUG = (typeof VEGA_DEBUG == \"undefined\") ? {} : VEGA_DEBUG;\n",
" (function(spec, embedOpt){\n",
" let outputDiv = document.currentScript.previousElementSibling;\n",
" if (outputDiv.id !== \"altair-viz-a42e1478df4e4da99dca1f0bcdb8e420\") {\n",
" outputDiv = document.getElementById(\"altair-viz-a42e1478df4e4da99dca1f0bcdb8e420\");\n",
" }\n",
" const paths = {\n",
" \"vega\": \"https://cdn.jsdelivr.net/npm//vega@5?noext\",\n",
" \"vega-lib\": \"https://cdn.jsdelivr.net/npm//vega-lib?noext\",\n",
" \"vega-lite\": \"https://cdn.jsdelivr.net/npm//vega-lite@4.17.0?noext\",\n",
" \"vega-embed\": \"https://cdn.jsdelivr.net/npm//vega-embed@6?noext\",\n",
" };\n",
"\n",
" function maybeLoadScript(lib, version) {\n",
" var key = `${lib.replace(\"-\", \"\")}_version`;\n",
" return (VEGA_DEBUG[key] == version) ?\n",
" Promise.resolve(paths[lib]) :\n",
" new Promise(function(resolve, reject) {\n",
" var s = document.createElement('script');\n",
" document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
" s.async = true;\n",
" s.onload = () => {\n",
" VEGA_DEBUG[key] = version;\n",
" return resolve(paths[lib]);\n",
" };\n",
" s.onerror = () => reject(`Error loading script: ${paths[lib]}`);\n",
" s.src = paths[lib];\n",
" });\n",
" }\n",
"\n",
" function showError(err) {\n",
" outputDiv.innerHTML = `<div class=\"error\" style=\"color:red;\">${err}</div>`;\n",
" throw err;\n",
" }\n",
"\n",
" function displayChart(vegaEmbed) {\n",
" vegaEmbed(outputDiv, spec, embedOpt)\n",
" .catch(err => showError(`Javascript Error: ${err.message}<br>This usually means there's a typo in your chart specification. See the javascript console for the full traceback.`));\n",
" }\n",
"\n",
" if(typeof define === \"function\" && define.amd) {\n",
" requirejs.config({paths});\n",
" require([\"vega-embed\"], displayChart, err => showError(`Error loading script: ${err.message}`));\n",
" } else {\n",
" maybeLoadScript(\"vega\", \"5\")\n",
" .then(() => maybeLoadScript(\"vega-lite\", \"4.17.0\"))\n",
" .then(() => maybeLoadScript(\"vega-embed\", \"6\"))\n",
" .catch(showError)\n",
" .then(() => displayChart(vegaEmbed));\n",
" }\n",
" })({\"config\": {\"view\": {\"continuousWidth\": 400, \"continuousHeight\": 300}, \"legend\": {\"labelLimit\": 300}}, \"data\": {\"name\": \"data-1982167a9289d2d6247d654739bddf71\"}, \"mark\": \"bar\", \"encoding\": {\"color\": {\"field\": \"LCP\", \"scale\": {\"domain\": [\"poor (LCP > 4000.0)\", \"needs improvement (2500.0 < LCP <= 4000.0)\", \"good (LCP <= 2500.0)\"], \"range\": [\"red\", \"orange\", \"green\"]}, \"type\": \"nominal\"}, \"order\": {\"field\": \"LCP\", \"sort\": \"ascending\", \"type\": \"nominal\"}, \"x\": {\"axis\": {\"title\": null}, \"field\": \"last_date\", \"type\": \"temporal\"}, \"y\": {\"aggregate\": \"sum\", \"axis\": {\"format\": \"%\", \"title\": null}, \"field\": \"pct\", \"type\": \"quantitative\"}}, \"$schema\": \"https://vega.github.io/schema/vega-lite/v4.17.0.json\", \"datasets\": {\"data-1982167a9289d2d6247d654739bddf71\": [{\"last_date\": \"2023-07-22T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.753662109375}, {\"last_date\": \"2023-07-29T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.74481201171875}, {\"last_date\": \"2023-08-05T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.74359130859375}, {\"last_date\": \"2023-08-12T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.757110595703125}, {\"last_date\": \"2023-08-19T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.783843994140625}, {\"last_date\": \"2023-08-26T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.8101806640625}, {\"last_date\": \"2023-09-02T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.826934814453125}, {\"last_date\": \"2023-09-09T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.82415771484375}, {\"last_date\": \"2023-09-16T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.817718505859375}, {\"last_date\": \"2023-09-23T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.827392578125}, {\"last_date\": \"2023-09-30T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.83294677734375}, {\"last_date\": \"2023-10-07T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.8360595703125}, {\"last_date\": \"2023-10-14T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.795318603515625}, {\"last_date\": \"2023-10-21T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.68206787109375}, {\"last_date\": \"2023-10-28T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.561981201171875}, {\"last_date\": \"2023-11-04T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.46990966796875}, {\"last_date\": \"2023-11-11T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.42596435546875}, {\"last_date\": \"2023-11-18T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.41583251953125}, {\"last_date\": \"2023-11-25T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.39935302734375}, {\"last_date\": \"2023-12-02T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.373321533203125}, {\"last_date\": \"2023-12-09T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.359161376953125}, {\"last_date\": \"2023-12-16T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.36236572265625}, {\"last_date\": \"2023-12-23T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.370819091796875}, {\"last_date\": \"2023-12-30T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.37872314453125}, {\"last_date\": \"2024-01-06T00:00:00\", \"LCP\": \"good (LCP <= 2500.0)\", \"pct\": 0.39404296875}, {\"last_date\": \"2023-07-22T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.146453857421875}, {\"last_date\": \"2023-07-29T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.15008544921875}, {\"last_date\": \"2023-08-05T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.14923095703125}, {\"last_date\": \"2023-08-12T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.14337158203125}, {\"last_date\": \"2023-08-19T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.127777099609375}, {\"last_date\": \"2023-08-26T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.113616943359375}, {\"last_date\": \"2023-09-02T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.10638427734375}, {\"last_date\": \"2023-09-09T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.10675048828125}, {\"last_date\": \"2023-09-16T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.1119384765625}, {\"last_date\": \"2023-09-23T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.106048583984375}, {\"last_date\": \"2023-09-30T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.1005859375}, {\"last_date\": \"2023-10-07T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.099761962890625}, {\"last_date\": \"2023-10-14T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.121002197265625}, {\"last_date\": \"2023-10-21T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.17791748046875}, {\"last_date\": \"2023-10-28T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.24481201171875}, {\"last_date\": \"2023-11-04T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.29364013671875}, {\"last_date\": \"2023-11-11T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.31951904296875}, {\"last_date\": \"2023-11-18T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.3197021484375}, {\"last_date\": \"2023-11-25T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.3135986328125}, {\"last_date\": \"2023-12-02T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.30889892578125}, {\"last_date\": \"2023-12-09T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.304840087890625}, {\"last_date\": \"2023-12-16T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.304656982421875}, {\"last_date\": \"2023-12-23T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.307708740234375}, {\"last_date\": \"2023-12-30T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.310302734375}, {\"last_date\": \"2024-01-06T00:00:00\", \"LCP\": \"needs improvement (2500.0 < LCP <= 4000.0)\", \"pct\": 0.30938720703125}, {\"last_date\": \"2023-07-22T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.099884033203125}, {\"last_date\": \"2023-07-29T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.1051025390625}, {\"last_date\": \"2023-08-05T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.107177734375}, {\"last_date\": \"2023-08-12T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.099517822265625}, {\"last_date\": \"2023-08-19T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.08837890625}, {\"last_date\": \"2023-08-26T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.076202392578125}, {\"last_date\": \"2023-09-02T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.066680908203125}, {\"last_date\": \"2023-09-09T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.069091796875}, {\"last_date\": \"2023-09-16T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.070343017578125}, {\"last_date\": \"2023-09-23T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.066558837890625}, {\"last_date\": \"2023-09-30T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.06646728515625}, {\"last_date\": \"2023-10-07T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.064178466796875}, {\"last_date\": \"2023-10-14T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.08367919921875}, {\"last_date\": \"2023-10-21T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.1400146484375}, {\"last_date\": \"2023-10-28T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.193206787109375}, {\"last_date\": \"2023-11-04T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.2364501953125}, {\"last_date\": \"2023-11-11T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.2545166015625}, {\"last_date\": \"2023-11-18T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.26446533203125}, {\"last_date\": \"2023-11-25T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.28704833984375}, {\"last_date\": \"2023-12-02T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.317779541015625}, {\"last_date\": \"2023-12-09T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.33599853515625}, {\"last_date\": \"2023-12-16T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.332977294921875}, {\"last_date\": \"2023-12-23T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.32147216796875}, {\"last_date\": \"2023-12-30T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.31097412109375}, {\"last_date\": \"2024-01-06T00:00:00\", \"LCP\": \"poor (LCP > 4000.0)\", \"pct\": 0.29656982421875}]}}, {\"mode\": \"vega-lite\"});\n",
"</script>"
],
"text/plain": [
"alt.Chart(...)"
]
},
"metadata": {}
}
],
"source": [
"#@markdown # CRUX History API\n",
"#@markdown Welcome to the CrUX History API. This Colab allows you to get time\n",
"#@markdown series data from the Chrome User Experience Report (CrUX)\n",
"#@markdown for specific origins and urls via the CrUX History API, and also get\n",
"#@markdown you started making your own API requests. You can easily look under\n",
"#@markdown the hood by clicking \"Show code\" at the end of this section.\n",
"#@markdown\n",
"#@markdown Please also see\n",
"#@markdown * [the reference documentation](https://developer.chrome.com/docs/crux/history-api/)\n",
"#@markdown * [our blog post](https://developer.chrome.com/blog/chrome-ux-report-history-api/)\n",
"#@markdown * [the canonical version of this Colab](https://colab.research.google.com/github/GoogleChrome/CrUX/blob/main/colab/crux-history-api.ipynb)\n",
"#@markdown * [the canonical source of this Colab](https://github.com/GoogleChrome/CrUX/blob/main/colab/crux-history-api.ipynb)\n",
"#@markdown * [our discussion forum for praise, complaints, and questions](https://groups.google.com/a/chromium.org/g/chrome-ux-report)\n",
"#@markdown\n",
"#@markdown ## API key\n",
"#@markdown To run this Colab, you'll need an API key. You can create one in the\n",
"#@markdown [Credentials page](https://console.developers.google.com/apis/credentials)\n",
"#@markdown and provision it for Chrome UX Report API usage. If you're making\n",
"#@markdown your own requests, this key needs to be included in every request\n",
"#@markdown with the `?key=` parameter, but in this Colab you can simply\n",
"#@markdown enter it as CRUX_KEY in the next line. After that, press the play\n",
"#@markdown button and the magic begins (it's OK to use the default Colab\n",
"#@markdown runtime).\n",
"CRUX_KEY = \"\" #@param {type: \"string\"}\n",
"\n",
"#@markdown Specify origin or url (not both).\n",
"ORIGIN = \"https://web.dev\" #@param {type: \"string\"}\n",
"URL = \"\" #@param {type: \"string\"}\n",
"#@markdown Specify a form factor (phone, desktop, tablet) or all.\n",
"FORM_FACTOR = \"ALL\" #@param [\"ALL\", \"PHONE\", \"DESKTOP\", \"TABLET\"]\n",
"#@markdown Specify the metrics; if left blank, we'll report all metrics.\n",
"METRICS = \"\" #@param {type:\"string\"}\n",
"\n",
"#@markdown What to include in the rendered output below?\n",
"EMIT_GRAPHS = True #@param {type:\"boolean\"}\n",
"EMIT_TABULAR_OUTPUT = False #@param {type:\"boolean\"}\n",
"EMIT_REQUEST_RESPONSE = False #@param {type:\"boolean\"}\n",
"\n",
"\n",
"import altair as alt\n",
"import requests\n",
"import pandas\n",
"import json\n",
"from typing import Any, Tuple, Dict, List\n",
"from IPython import display\n",
"from google.colab import data_table\n",
"\n",
"\n",
"def get_crux_api_response_from_form() -> Tuple[Dict[str, str], Dict[str, Any]]:\n",
" \"\"\"Based on the form data, makes a CrUX history request.\n",
"\n",
" The first return value is the request, the second is the parsed response.\n",
" \"\"\"\n",
" url = f'https://chromeuxreport.googleapis.com/v1/records:queryHistoryRecord?key={CRUX_KEY}'\n",
" json_request = {}\n",
" if URL:\n",
" json_request['url'] = URL\n",
" if ORIGIN:\n",
" json_request['origin'] = ORIGIN\n",
" if FORM_FACTOR != 'ALL':\n",
" json_request['form_factor'] = FORM_FACTOR\n",
" if METRICS:\n",
" json_request['metrics'] = METRICS\n",
" response = requests.post(url, json.dumps(json_request))\n",
" return json_request, response.json()\n",
"\n",
"\n",
"def short_name(metric: str) -> str:\n",
" \"\"\"A short name for a metric name.\n",
"\n",
" In CrUX API responses, metric names are provided in snake case, e.g.,\n",
" first_contentful_paint. This function computes the three or four letter\n",
" shortname, e.g., FCP.\n",
" \"\"\"\n",
" short = ''.join([s[0].upper()\n",
" for s in metric.split('_') if s != 'experimental'])\n",
" return short if short != 'ITNP' else 'INP'\n",
"\n",
"\n",
"def metrics_in(response: dict) -> List[str]:\n",
" \"\"\"Returns the metric names in a CrUX API history response.\"\"\"\n",
"\n",
" metrics = list(response['record']['metrics'].keys())\n",
" metrics.sort()\n",
" return metrics\n",
"\n",
"\n",
"def thresholds_by_metric(response: dict) -> Dict[str, Tuple[float, float]]:\n",
" \"\"\"The thresholds by metric name.\n",
"\n",
" Key in the returned dict is a metric name, e.g. 'first_contentful_paint'.\n",
" Value is a tuple of the low threshold, which separates 'good' from\n",
" 'needs improvement', and the high threshold, which separates\n",
" 'needs improvement' from 'poor'.\n",
" \"\"\"\n",
"\n",
" result = {}\n",
" for metric, data in response['record']['metrics'].items():\n",
" if 'histogramTimeseries' not in data: continue\n",
" result[metric] = (float(data['histogramTimeseries'][1]['start']),\n",
" float(data['histogramTimeseries'][1]['end']))\n",
" return result\n",
"\n",
"\n",
"def dataframe_for(metric, response) -> pandas.DataFrame:\n",
" \"\"\"Extracts the p75, histogram density, and fraction timeseries for a metric.\"\"\"\n",
"\n",
" timestamp = lambda e: pandas.Timestamp(e['year'], e['month'], e['day'])\n",
" cols = {\n",
" 'first_date': [timestamp(e['firstDate'])\n",
" for e in response['record']['collectionPeriods']],\n",
" 'last_date': [timestamp(e['lastDate'])\n",
" for e in response['record']['collectionPeriods']],\n",
" }\n",
" data = response['record']['metrics'][metric]\n",
" if 'fractionTimeseries' in data:\n",
" for (label, value) in data['fractionTimeseries'].items():\n",
" cols[label] = value['fractions']\n",
" if 'percentilesTimeseries' in data:\n",
" cols['p75'] = data['percentilesTimeseries']['p75s']\n",
" if 'histogramTimeseries' in data:\n",
" cols['good'] = data['histogramTimeseries'][0]['densities']\n",
" cols['needs improvement'] = data['histogramTimeseries'][1]['densities']\n",
" cols['poor'] = data['histogramTimeseries'][2]['densities']\n",
" return pandas.DataFrame(cols)\n",
"\n",
"\n",
"def url_normalization_details(response) -> str:\n",
" \"\"\"Summarizes the URL normalization made by the API.\"\"\"\n",
"\n",
" if 'urlNormalizationDetails' not in response: return ''\n",
" return 'URL was normalized from \"{originalUrl}\" to \"{normalizedUrl}\".'.format(\n",
" **response['urlNormalizationDetails'])\n",
"\n",
"\n",
"def display_header(label: str):\n",
" \"\"\"Displays a header in the output.\"\"\"\n",
" display.display(display.HTML(f'<h2>{label}</h2>'))\n",
"\n",
"\n",
"def make_p75_chart(stats: pandas.DataFrame, metric: str,\n",
" lo_threshold: float, hi_threshold: float) -> alt.Chart:\n",
" \"\"\"Creates a P75 chart, displaying p75 data points per collection period.\n",
"\n",
" The P75 data points are the metric value along the y axis, the last_date\n",
" of the collection time period is the x axis. Two horizontal\n",
" lines separate good_range from ni_range (needs improvement) and\n",
" from poor_range; these are rendered as areas in green / orange / red.\n",
" For graphs that don't have 'poor' P75 values, no red area is rendered.\n",
" \"\"\"\n",
" p75_stats = stats[['last_date', 'p75']].melt(\n",
" 'last_date', var_name='percentile', value_name=short_name(metric))\n",
" good_range = alt.Chart(\n",
" pandas.DataFrame({'y': [0], 'y2': [lo_threshold]})).mark_rect(\n",
" color='green', opacity=0.2).encode(\n",
" alt.Y('y', axis=alt.Axis(title=None)), y2='y2')\n",
" ni_range = alt.Chart(\n",
" pandas.DataFrame({'y': [lo_threshold], 'y2': [hi_threshold]})\n",
" ).mark_rect(color='orange', opacity=0.2).encode(\n",
" alt.Y('y', axis=alt.Axis(title=None)), y2='y2')\n",
" ranges = good_range + ni_range\n",
" max_p75 = float(pandas.to_numeric(stats['p75']).max())\n",
" if max_p75 > hi_threshold: # Are there poor p75 values?\n",
" poor_range = alt.Chart(\n",
" pandas.DataFrame({'y': [hi_threshold],\n",
" 'y2': [max_p75 * 1.1]})).mark_rect(\n",
" color='red', opacity=0.2).encode(\n",
" alt.Y('y',\n",
" axis=alt.Axis(title=None)), y2='y2')\n",
" ranges += poor_range\n",
" p75_chart = ranges + alt.Chart(p75_stats).mark_line().encode(\n",
" alt.X('last_date:T', axis=alt.Axis(title=None)),\n",
" y=short_name(metric)+':Q', color='percentile:N')\n",
" return p75_chart\n",
"\n",
"\n",
"def make_tribin_chart(stats: pandas.DataFrame, metric: str,\n",
" lo_threshold: float, hi_threshold : float) -> alt.Chart:\n",
" \"\"\"A Tribin chart shows histogram bin density values in a stacked bar chart.\n",
"\n",
" The y axis is the percentage of page loads that fall into a user experience\n",
" category (\"good\", \"needs improvement\", \"poor\"). The API returns\n",
" NaN densities for missing data, which we map to 0.0 here so that these\n",
" render as missing bars, since NaN can't be reasonably rendered on the y axis.\n",
" \"\"\"\n",
" good_label = f'good ({short_name(metric)} <= {lo_threshold})'\n",
" ni_label = ('needs improvement '\n",
" f'({lo_threshold} < {short_name(metric)} <= {hi_threshold})')\n",
" poor_label = f'poor ({short_name(metric)} > {hi_threshold})'\n",
" tribin_stats = stats[['last_date',\n",
" 'good',\n",
" 'needs improvement',\n",
" 'poor']].melt(\n",
" 'last_date', var_name=short_name(metric),\n",
" value_name='pct').replace(\n",
" {'good': good_label,\n",
" 'needs improvement': ni_label,\n",
" 'poor': poor_label,\n",
" 'NaN': 0.0})\n",
" tribin_chart = alt.Chart(tribin_stats).mark_bar().encode(\n",
" alt.X('last_date:T', axis=alt.Axis(title=None)),\n",
" alt.Y('sum(pct)', axis=alt.Axis(title=None, format='%')),\n",
" color=alt.Color(\n",
" short_name(metric), scale=alt.Scale(\n",
" domain=[poor_label, ni_label, good_label],\n",
" range=['red','orange', 'green'])),\n",
" order=alt.Order(short_name(metric),\n",
" sort='ascending')).configure_legend(\n",
" labelLimit=300)\n",
" return tribin_chart\n",
"\n",
"\n",
"def make_fractions_chart(stats: pandas.DataFrame, metric: str) -> alt.Chart:\n",
" \"\"\"A chart showing fraction timeseries in a stacked bar chart.\n",
"\n",
" The y axis is the fraction, adding up to 1.0. The API returns\n",
" NaN densities for missing data, which we map to 0.0 here so that these\n",
" render as missing bars, since NaN can't be reasonably rendered on the y axis.\n",
" \"\"\"\n",
" fraction_stats = stats[[e for e in stats.columns.values.tolist()\n",
" if e != 'first_date']].melt(\n",
" 'last_date', var_name=short_name(metric),\n",
" value_name='pct').replace(\n",
" {'NaN': 0.0})\n",
" tribin_chart = alt.Chart(fraction_stats).mark_bar().encode(\n",
" alt.X('last_date:T', axis=alt.Axis(title=None)),\n",
" alt.Y('sum(pct)', axis=alt.Axis(title=None, format='%')),\n",
" color=alt.Color(short_name(metric)),\n",
" order=alt.Order(short_name(metric),\n",
" sort='ascending')).configure_legend(labelLimit=300)\n",
" return tribin_chart\n",
"\n",
"\n",
"def display_metric_stats(metric: str, stats: pandas.DataFrame,\n",
" lo_threshold:float, hi_threshold:float):\n",
" \"\"\"For a specific metric, displays the requested stats (graphs, tabular).\"\"\"\n",
" name = short_name(metric)\n",
" display_header(f'{name} ({metric})')\n",
" stats = dataframe_for(metric, response)\n",
" web_dev_link = f'https://web.dev/{short_name(metric).lower()}/'\n",
" web_dev_link_text = f'web.dev/{short_name(metric).lower()}/'\n",
" display.display(display.HTML(\n",
" 'Learn more at '\n",
" f'<a href=\"{web_dev_link}\" target=\"_blank\">{web_dev_link_text}</a>.'))\n",
"\n",
" if EMIT_GRAPHS:\n",
" display.display(make_p75_chart(stats, metric, lo_threshold, hi_threshold))\n",
" display.display(make_tribin_chart(stats, metric, lo_threshold, hi_threshold))\n",
"\n",
" if EMIT_TABULAR_OUTPUT:\n",
" display.display(data_table.DataTable(stats.round(4),\n",
" min_width='100', include_index=False))\n",
"\n",
"\n",
"def display_fraction_metric_stats(metric: str, stats: pandas.DataFrame):\n",
" \"\"\"For a specific metric, displays the requested stats (graphs, tabular).\n",
"\n",
" This routine is specialized for fraction metrics, which don't have thresholds,\n",
" tribins (histograms), or p75 timeseries. Instead, these metrics have labeled\n",
" fractions for each timeseries entry, which add up to 1.0 (100%).\n",
" \"\"\"\n",
" display_header(f'{metric}')\n",
" stats = dataframe_for(metric, response)\n",
" if EMIT_GRAPHS:\n",
" display.display(make_fractions_chart(stats, metric))\n",
" if EMIT_TABULAR_OUTPUT:\n",
" display.display(data_table.DataTable(stats.round(4),\n",
" min_width='100', include_index=False))\n",
"\n",
"\n",
"request, response = get_crux_api_response_from_form()\n",
"if 'record' not in response:\n",
" display_header('No record found in response!')\n",
" EMIT_REQUEST_RESPONSE = True\n",
"else:\n",
" key = response['record']['key']\n",
" identifier = ('url <code>{url}</code>'.format(**key) if 'url' in key\n",
" else 'origin <code>{origin}</code>'.format(**key))\n",
" form_factor = ' on {formFactor}'.format(**key) if 'formFactor' in key else ''\n",
" display_header(f'Displaying CrUX data for {identifier}{form_factor}')\n",
" display.display(display.HTML(url_normalization_details(response)))\n",
" thresholds = thresholds_by_metric(response)\n",
"\n",
" if EMIT_GRAPHS:\n",
" display.display(display.HTML(\"\"\"\n",
" For each metric with histograms and percentiles, we display two graphs:\n",
" <ul>\n",
" <li>The percentile graph shows the p75 values for the metric over time.\n",
" The shaded areas indicate good (light green),\n",
" needs improvement (light orange), and poor (light red).\n",
" <li>The tribin graph shows the percentages of page loads with\n",
" a good, needs improvement, or poor user experience over time.\n",
" </ul>\n",
" If the metric has labeled fractions, then we display these in a single\n",
" stacked bar chart.\n",
" In all cases, each point in time in the graph on the x axis\n",
" represents a 28 day collection period ending in that date.\n",
" \"\"\"))\n",
"\n",
" for metric in metrics_in(response):\n",
" if metric in thresholds:\n",
" lo_threshold, hi_threshold = thresholds[metric]\n",
" display_metric_stats(metric, dataframe_for(metric, response),\n",
" lo_threshold, hi_threshold)\n",
" else:\n",
" display_fraction_metric_stats(metric, dataframe_for(metric, response))\n",
"\n",
"if EMIT_REQUEST_RESPONSE:\n",
" display_header('CrUX History API Request')\n",
" json_str = json.dumps(request)\n",
" display.display(display.HTML(f'<pre>{json_str}</pre>'))\n",
"\n",
" display_header('CrUX History API Response')\n",
" json_str = json.dumps(response, indent=2)\n",
" display.display(display.HTML(f'<pre>{json_str}</pre>'))"
]
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
},
"gpuClass": "standard"
},
"nbformat": 4,
"nbformat_minor": 0
}
================================================
FILE: colab/navigation-types-and-lcp.ipynb
================================================
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"13029d2bb5db4bc4b78d62ef18c7dc22": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_96418bcde70446f8853857b4646bc8e5",
"IPY_MODEL_0d8728fa4a3843d6b3c9bd674d54d24c",
"IPY_MODEL_0e071ff0c7a242eca5ee7a3f0045fa4e"
],
"layout": "IPY_MODEL_f2587b4dcb3c457eb793f93ab2c5d0d6"
}
},
"96418bcde70446f8853857b4646bc8e5": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_fe1bf45170084868b80f982f5e3bbee6",
"placeholder": "",
"style": "IPY_MODEL_d5b463c1ada245819369b44fe4aa22e1",
"value": "Job ID d4a144c9-5b79-46a0-a563-b6e5fc70cb55 successfully executed: 100%"
}
},
"0d8728fa4a3843d6b3c9bd674d54d24c": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ded72001a6ce467aad6725364b7aea4b",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_9b8829caea1742c39aa7ae60a98003bb",
"value": 1
}
},
"0e071ff0c7a242eca5ee7a3f0045fa4e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_77fc71e9c7514f85a9bbdfa6f31f099f",
"placeholder": "",
"style": "IPY_MODEL_fea6cf64ef2a45389559f4c4f8a774ba",
"value": ""
}
},
"f2587b4dcb3c457eb793f93ab2c5d0d6": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fe1bf45170084868b80f982f5e3bbee6": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d5b463c1ada245819369b44fe4aa22e1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ded72001a6ce467aad6725364b7aea4b": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"9b8829caea1742c39aa7ae60a98003bb": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"77fc71e9c7514f85a9bbdfa6f31f099f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fea6cf64ef2a45389559f4c4f8a774ba": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"99f4a9aaf0bb488fa1f11cb7bd476439": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_89a4b5c25fb9428582b5c50e8503922c",
"IPY_MODEL_9f7ade8a251740fbb09374a1904a6122",
"IPY_MODEL_25c527de440b4190b782e5cbf2ba4220"
],
"layout": "IPY_MODEL_6ea1c147f71544ed9e02ff628261fed6"
}
},
"89a4b5c25fb9428582b5c50e8503922c": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_1129703897fa4fada5321767607d78fe",
"placeholder": "",
"style": "IPY_MODEL_c8901ac1c97645859e35f4b093c44ba7",
"value": "Downloading: 100%"
}
},
"9f7ade8a251740fbb09374a1904a6122": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_5587965dba564434ae0a49c4771ffc72",
"max": 9831,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_44f91b0223314ef1b7db93a5dfe88e67",
"value": 9831
}
},
"25c527de440b4190b782e5cbf2ba4220": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bc2e0968a05749d9ae9a364978af82c5",
"placeholder": "",
"style": "IPY_MODEL_36268dfb1d254b4a91bd0d395d4da925",
"value": ""
}
},
"6ea1c147f71544ed9e02ff628261fed6": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1129703897fa4fada5321767607d78fe": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c8901ac1c97645859e35f4b093c44ba7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"5587965dba564434ae0a49c4771ffc72": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"44f91b0223314ef1b7db93a5dfe88e67": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"bc2e0968a05749d9ae9a364978af82c5": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"36268dfb1d254b4a91bd0d395d4da925": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"6684744b41b54d12b0e5943d659cbe50": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_3da1712bb69441e692c01d46188a21c1",
"IPY_MODEL_2666f64f0617456a944b53035d8f880b",
"IPY_MODEL_09cf2238c0554163a99d303160541504"
],
"layout": "IPY_MODEL_56aa7e70f8aa4005ab6f7868e8cc7e93"
}
},
"3da1712bb69441e692c01d46188a21c1": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f581ced1154e4f23ab56a32eb8b7471f",
"placeholder": "",
"style": "IPY_MODEL_fe7993973de94ca484fcf6e9084b4207",
"value": "Job ID e0661027-523a-4b4c-91ca-dcb630813f6c successfully executed: 100%"
}
},
"2666f64f0617456a944b53035d8f880b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0a3932c9fc8b4c31ad4f20d6e65f4cde",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_14358de83cd24433a8843edd443ba3b2",
"value": 1
}
},
"09cf2238c0554163a99d303160541504": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a0f9a6912d424970ad09b0846fa5d066",
"placeholder": "",
"style": "IPY_MODEL_241c615225e44f03814a7429cdc989c7",
"value": ""
}
},
"56aa7e70f8aa4005ab6f7868e8cc7e93": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f581ced1154e4f23ab56a32eb8b7471f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_m
gitextract_zxhgowfc/
├── .github/
│ └── ISSUE_TEMPLATE/
│ └── new-crux-metric-request.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── colab/
│ ├── crux-history-api.ipynb
│ └── navigation-types-and-lcp.ipynb
├── gs/
│ ├── README.md
│ ├── crux-api.gs
│ └── psi-api-v5.gs
├── js/
│ └── crux-api-util.js
├── sql/
│ ├── README.md
│ ├── cls-summary.sql
│ ├── core-web-vitals-compliance-rates.sql
│ ├── core-web-vitals.sql
│ ├── country-fast-fcp.sql
│ ├── fast-fcp-for-domain.sql
│ ├── global-connection-density.sql
│ ├── global-device-density.sql
│ ├── mastering-crux/
│ │ ├── 01-basic-cwv.sql
│ │ ├── 02-timeseries-cwv.sql
│ │ ├── 03-device-cwv.sql
│ │ └── 04-country-cwv.sql
│ ├── notification-permissions-origin-form-factor.sql
│ ├── notification-permissions.sql
│ ├── origins-for-domain.sql
│ ├── p75-fcp-timeseries.sql
│ ├── p75-fcp.sql
│ ├── p75-lcp-country.sql
│ ├── subregion-fast-fcp.sql
│ ├── test-my-site.sql
│ └── timeseries-fast-fcp.sql
└── utils/
├── countries.js
├── countries.json
└── countries.txt
Condensed preview — 34 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,134K chars).
[
{
"path": ".github/ISSUE_TEMPLATE/new-crux-metric-request.md",
"chars": 638,
"preview": "---\nname: New CrUX metric request\nabout: Tell us about a new metric you'd like to see included in the report\ntitle: ''\nl"
},
{
"path": "CONTRIBUTING.md",
"chars": 1100,
"preview": "# How to Contribute\n\nWe'd love to accept your patches and contributions to this project. There are\njust a few small guid"
},
{
"path": "LICENSE",
"chars": 11357,
"preview": "\n Apache License\n Version 2.0, January 2004\n "
},
{
"path": "README.md",
"chars": 1185,
"preview": "# CrUX\n\n\n\nResources for using Apps Script to extract CrUX insights from the PageSpeed Insights API.\n\nS"
},
{
"path": "gs/crux-api.gs",
"chars": 2585,
"preview": "// Copyright 2020 Google LLC.\n// SPDX-License-Identifier: Apache-2.0\n\nconst URLs = [\n 'https://web.dev/',\n 'https://we"
},
{
"path": "gs/psi-api-v5.gs",
"chars": 1843,
"preview": "// Copyright 2020 Google LLC.\n// SPDX-License-Identifier: Apache-2.0\n\n// Example of Google Apps Script code that connect"
},
{
"path": "js/crux-api-util.js",
"chars": 3292,
"preview": "// Copyright 2020 Google LLC.\n// SPDX-License-Identifier: Apache-2.0\n\nconst CrUXApiUtil = {};\n// Get your CrUX API key a"
},
{
"path": "sql/README.md",
"chars": 3017,
"preview": "# CrUX Cookbook\n\nRecipes for extracting insights from the [Chrome User Experience Report](https://developers.google.com/"
},
{
"path": "sql/cls-summary.sql",
"chars": 298,
"preview": "#standardSQL\n# This query only processes 117.5 MB because it uses the materialized dataset!\nSELECT\n p75_cls,\n small_cl"
},
{
"path": "sql/core-web-vitals-compliance-rates.sql",
"chars": 2758,
"preview": "#standardSQL\n# Calculate the percent of origins that comply with each Core Web Vital's \"good\" threshold for 75% or more "
},
{
"path": "sql/core-web-vitals.sql",
"chars": 731,
"preview": "# Query the Core Web Vitals for an origin.\n# This query only consumes 43 MB! :)\nSELECT\n # Largest Contentful Paint\n # "
},
{
"path": "sql/country-fast-fcp.sql",
"chars": 27036,
"preview": "#standardSQL\n# Create a `countries` alias that annotates each country's data with the corresponding country name and cou"
},
{
"path": "sql/fast-fcp-for-domain.sql",
"chars": 298,
"preview": "#standardSQL\n# Gets the % of fast FCP for a given domain.\nSELECT\n DISTINCT origin,\n SUM(fcp.density) AS pct_fast_fcp\nF"
},
{
"path": "sql/global-connection-density.sql",
"chars": 390,
"preview": "#standardSQL\n# Breaks down the global distribution of effective connection types.\n# eg: 90% 4G, 9% 3G, etc.\nSELECT\n effe"
},
{
"path": "sql/global-device-density.sql",
"chars": 377,
"preview": "#standardSQL\n# Breaks down the global distribution of form factors.\n# eg: 76% phone, 23% desktop, 1% tablet.\nSELECT\n for"
},
{
"path": "sql/mastering-crux/01-basic-cwv.sql",
"chars": 301,
"preview": "# Querying one month of Core Web Vitals stats for an origin.\nSELECT\n fast_lcp AS pct_good_lcp,\n p75_lcp,\n fast_inp AS"
},
{
"path": "sql/mastering-crux/02-timeseries-cwv.sql",
"chars": 319,
"preview": "# Timeseries of Core Web Vitals performance.\nSELECT\n yyyymm,\n fast_lcp AS pct_good_lcp,\n p75_lcp,\n fast_inp AS pct_g"
},
{
"path": "sql/mastering-crux/03-device-cwv.sql",
"chars": 478,
"preview": "# Core Web Vitals performance by device.\nSELECT\n yyyymm,\n device,\n fast_lcp / (fast_lcp + avg_lcp + slow_lcp) AS pct_"
},
{
"path": "sql/mastering-crux/04-country-cwv.sql",
"chars": 575,
"preview": "# Core Web Vitals performance by country.\nSELECT\n yyyymm,\n `chrome-ux-report`.experimental.GET_COUNTRY(country_code) A"
},
{
"path": "sql/notification-permissions-origin-form-factor.sql",
"chars": 1044,
"preview": "#standardSQL\n# Notification permission response rates for multiple origins and form factors.\nSELECT\n origin,\n form_fac"
},
{
"path": "sql/notification-permissions.sql",
"chars": 400,
"preview": "#standardSQL\n# Explore notification permission response rates.\nSELECT\n SUM(experimental.permission.notifications.accept"
},
{
"path": "sql/origins-for-domain.sql",
"chars": 279,
"preview": "#standardSQL\n# Gets all distinct origins for a given domain.\n# Example output: http://www.example.com, http://example.co"
},
{
"path": "sql/p75-fcp-timeseries.sql",
"chars": 831,
"preview": "#standardSQL\n# Approximates the 75th percentile FCP for origins over time.\n# Warning!! This query processes the entire d"
},
{
"path": "sql/p75-fcp.sql",
"chars": 501,
"preview": "#standardSQL\n# Approximates the 75th percentile FCP for a given origin and form factor.\nSELECT\n MIN(start) AS fcp\nFROM "
},
{
"path": "sql/p75-lcp-country.sql",
"chars": 368,
"preview": "#standardSQL\n# Get the 75th percentile LCP across all countries for a single month, origin, and device.\nSELECT\n country"
},
{
"path": "sql/subregion-fast-fcp.sql",
"chars": 38784,
"preview": "#standardSQL\n# Create a `countries` alias that decorates each dataset with geographic metadata.\n# Generated by utils/cou"
},
{
"path": "sql/test-my-site.sql",
"chars": 449,
"preview": "#standardSQL\n# Emulates the analysis on https://www.thinkwithgoogle.com/feature/testmysite\nSELECT\n `chrome-ux-report`.e"
},
{
"path": "sql/timeseries-fast-fcp.sql",
"chars": 332,
"preview": "#standardSQL\n# Gets a month-to-month sequence of % fast FCP for a given origin.\nSELECT\n _TABLE_SUFFIX AS yyyymm,\n SUM("
},
{
"path": "utils/countries.js",
"chars": 992,
"preview": "// The table to query for each country.\n// Feeling adventurous? Use '*' to query all monthly releases.\nvar CRUX_MONTH = "
},
{
"path": "utils/countries.json",
"chars": 23879,
"preview": "{\n \"af\": {\n \"name\": \"Afghanistan\",\n \"region\": \"Asia\",\n \"sub-region\": \"Southern Asia\"\n },\n \"ax\": {\n \"name\""
},
{
"path": "utils/countries.txt",
"chars": 2618,
"preview": "country_ad\ncountry_ae\ncountry_af\ncountry_ag\ncountry_ai\ncountry_al\ncountry_am\ncountry_ao\ncountry_ar\ncountry_as\ncountry_at"
}
]
About this extraction
This page contains the full source code of the GoogleChrome/CrUX GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 34 files (1.0 MB), approximately 588.6k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.