📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
some fix
kruzhambusb5bd9fff864d
diff --git a/src/pages/Project/View/ViewProject.helpers.jsx b/src/pages/Project/View/ViewProject.helpers.jsxindex 05bf6f91e..1750f6528 100644--- a/src/pages/Project/View/ViewProject.helpers.jsx+++ b/src/pages/Project/View/ViewProject.helpers.jsx@@ -5,7 +5,7 @@ import {} from '@heroicons/react/24/outline'import * as d3 from 'd3'import dayjs from 'dayjs'-import { area, spline } from 'billboard.js'+import { area, areaSpline, spline } from 'billboard.js'import _forEach from 'lodash/forEach'import _map from 'lodash/map'import _split from 'lodash/split'@@ -455,13 +455,16 @@ const getSettingsPerf = (chart, timeBucket, activeChartMetrics, applyRegions) =>xFormat: tbsFormatMapper[timeBucket],columns: getColumnsPerf(chart, activeChartMetrics),types: {- dns: area(),- tls: area(),- conn: area(),- response: area(),- render: area(),- dom_load: area(),- ttfb: area(),+ dns: areaSpline(),+ tls: areaSpline(),+ conn: areaSpline(),+ response: areaSpline(),+ render: areaSpline(),+ dom_load: areaSpline(),+ ttfb: areaSpline(),+ frontend: areaSpline(),+ network: areaSpline(),+ backend: areaSpline(),},colors: {dns: '#EC4319',@@ -475,16 +478,10 @@ const getSettingsPerf = (chart, timeBucket, activeChartMetrics, applyRegions) =>network: '#F79D65',backend: '#00A8E8',},- // names: {- // dns: 'DNS',- // tls: 'TLS',- // conn: 'Conn',- // response: 'Response',- // render: 'Render',- // dom_load: 'DOM Load',- // ttfb: 'TTFB',- // },- regions,+ groups: [+ ['dns', 'tls', 'conn', 'response', 'render', 'dom_load', 'ttfb', 'frontend', 'network', 'backend'],+ ],+ // regions,},axis: {x: {diff --git a/src/pages/Project/View/ViewProject.jsx b/src/pages/Project/View/ViewProject.jsxindex 35721bcdc..365248543 100644--- a/src/pages/Project/View/ViewProject.jsx+++ b/src/pages/Project/View/ViewProject.jsx@@ -357,7 +357,7 @@ const ViewProject = ({} else {const { chart: chartPerf } = dataPerfconst applyRegions = !_includes(noRegionPeriods, activePeriod.period)- const bbSettings = getSettings(chartPerf, timeBucket, activeChartMetricsPerf, applyRegions)+ const bbSettings = getSettingsPerf(chartPerf, timeBucket, activeChartMetricsPerf, applyRegions)setChartDataPerf(chartPerf)setPanelsDataPerf({@@ -372,7 +372,7 @@ const ViewProject = ({setMainChart(() => {const generete = bb.generate(bbSettings)- generete.data.names(dataNames)+ generete.data.names(dataNamesPerf)return generete})}@@ -1155,7 +1155,11 @@ const ViewProject = ({!isPanelsDataEmptyPerf && (<Dropdownitems={chartMetricsPerf}- title={t('project.metricVis')}+ title={(+ <p>+ {_find(chartMetricsPerf, ({ id: chartId }) => chartId === activeChartMetricsPerf)?.label}+ </p>+ )}labelExtractor={(pair) => {const {label,