Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

(add) chart type & color chart for compare

kruzhambusd59c066ecfb2
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index 2f383fee4..46bb3d2a1 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -699,6 +699,16 @@ const getSettingsPerf = (
frontend: chartType === chartTypes.line ? areaSpline() : bar(),
network: chartType === chartTypes.line ? areaSpline() : bar(),
backend: chartType === chartTypes.line ? areaSpline() : bar(),
+ dnsCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ tlsCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ connCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ responseCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ renderCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ dom_loadCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ ttfbCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ frontendCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ networkCompare: chartType === chartTypes.line ? areaSpline() : bar(),
+ backendCompare: chartType === chartTypes.line ? areaSpline() : bar(),
},
colors: {
dns: '#EC4319',
@@ -711,6 +721,16 @@ const getSettingsPerf = (
frontend: '#709775',
network: '#F7A265',
backend: '#00A8E8',
+ dnsCompare: 'rgba(236, 67, 25, 0.4)',
+ tlsCompare: 'rgba(242, 112, 89, 0.4)',
+ connCompare: 'rgba(247, 162, 101, 0.4)',
+ responseCompare: 'rgba(245, 211, 118, 0.4)',
+ renderCompare: 'rgba(112, 151, 117, 0.4)',
+ dom_loadCompare: 'rgba(165, 230, 171, 0.4)',
+ ttfbCompare: 'rgba(0, 168, 232, 0.4)',
+ frontendCompare: 'rgba(112, 151, 117, 0.4)',
+ networkCompare: 'rgba(247, 162, 101, 0.4)',
+ backendCompare: 'rgba(0, 168, 232, 0.4)',
},
groups: [
['dns', 'tls', 'conn', 'response', 'render', 'dom_load', 'ttfb', 'frontend', 'network', 'backend'],