📈 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) Crash with bar chart. After page refresh or clean localstorage (#419)
Maksim Mrug68bc36e4f5fa
diff --git a/app/pages/Project/View/ViewProject.helpers.tsx b/app/pages/Project/View/ViewProject.helpers.tsxindex 3beff0a9c..11f7fcaf5 100644--- a/app/pages/Project/View/ViewProject.helpers.tsx+++ b/app/pages/Project/View/ViewProject.helpers.tsx@@ -777,13 +777,16 @@ const getSettings = (</ul>`},},- point: {- focus: {- only: xAxisSize > 1,- },- pattern: ['circle'],- r: 3,- },+ point:+ chartType === chartTypes.bar+ ? {}+ : {+ focus: {+ only: xAxisSize > 1,+ },+ pattern: ['circle'],+ r: 3,+ },legend: {usePoint: true,item: {@@ -903,13 +906,16 @@ const getSettingsSession = (}).join('')}`},},- point: {- focus: {- only: xAxisSize > 1,- },- pattern: ['circle'],- r: 3,- },+ point:+ chartType === chartTypes.bar+ ? {}+ : {+ focus: {+ only: xAxisSize > 1,+ },+ pattern: ['circle'],+ r: 3,+ },legend: {usePoint: true,item: {@@ -1028,13 +1034,16 @@ const getSettingsError = ().join('')}`},},- point: {- focus: {- only: xAxisSize > 1,- },- pattern: ['circle'],- r: 3,- },+ point:+ chartType === chartTypes.bar+ ? {}+ : {+ focus: {+ only: xAxisSize > 1,+ },+ pattern: ['circle'],+ r: 3,+ },legend: {usePoint: true,item: {@@ -1403,13 +1412,16 @@ const getSettingsPerf = (</ul>`},},- point: {- focus: {- only: xAxisSize > 1,- },- pattern: ['circle'],- r: 3,- },+ point:+ chartType === chartTypes.bar+ ? {}+ : {+ focus: {+ only: xAxisSize > 1,+ },+ pattern: ['circle'],+ r: 3,+ },legend: {usePoint: true,item: {