📈 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
fix broken bar chart switch
Blue Mouse2d4d83963d7a
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex a6c60e535..90afabd8b 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -2715,6 +2715,44 @@ const ViewProject = () => {const setChartTypeOnClick = (type: string) => {setItem('chartType', type)setChartType(type)++ if (activeTab === PROJECT_TABS.traffic) {+ const bbSettings = getSettings(+ chartData,+ timeBucket,+ activeChartMetrics,+ !_includes(noRegionPeriods, activePeriod?.period),+ timeFormat,+ rotateXAxis,+ type,+ customEventsChartData,+ dataChartCompare,+ )++ setMainChart(() => {+ const generate = bb.generate(bbSettings)+ generate.data.names(dataNames)+ return generate+ })+ }++ if (activeTab === PROJECT_TABS.performance) {+ const bbPerfSettings = getSettingsPerf(+ chartDataPerf,+ timeBucket,+ activeChartMetricsPerf,+ rotateXAxis,+ type,+ timeFormat,+ dataChartPerfCompare,+ )++ setMainChart(() => {+ const generate = bb.generate(bbPerfSettings)+ generate.data.names(dataNamesPerf)+ return generate+ })+ }}/* KEYBOARD SHORTCUTS */