📈 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: tooltip for sesion duration after resolve conflicts
kruzhambus2353748c0c1f
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsxindex c28aaeda3..c0317e3fd 100644--- a/src/pages/Project/View/ViewProject.helpers.tsx+++ b/src/pages/Project/View/ViewProject.helpers.tsx@@ -542,31 +542,25 @@ const getSettings = (if (id === 'sessionDuration') {return `- <div class='flex justify-between'>+ <div class='flex justify-between'><div class='flex justify-items-start'><div class='w-3 h-3 rounded-sm mt-1.5 mr-2' style=background-color:${color(id)}></div><span>${name}</span></div>- </div>`+ </div>+ <hr class='border-gray-200 dark:border-gray-600' />+ <li class='mt-1 ml-2'>+ <p>+ <span>${timeFormat === TimeFormat['24-hour'] ? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(x) : d3.timeFormat(tbsFormatMapperTooltip[timeBucket])(x)}</span> -+ <span>${getStringFromTime(getTimeFromSeconds(value))}</span>+ </p>+ <p>+ <span>${d3.timeFormat(tbsFormatMapper[timeBucket])(dayjs(compareChart?.x[index]).toDate())}</span> -+ <span>${getStringFromTime(getTimeFromSeconds(compareChart[typesOptionsToTypesCompare[id]][index]))}</span>+ </p>+ </li>+ `}- // format: {- // title: timeFormat === TimeFormat['24-hour'] ? (x: string) => d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(x) : (x: string) => d3.timeFormat(tbsFormatMapperTooltip[timeBucket])(x),- // },- // contents: {- // template: `- // <ul class='bg-gray-100 dark:text-gray-50 dark:bg-slate-800 rounded-md shadow-md px-3 py-1'>- // <li class='font-semibold'>{=TITLE}</li>- // <hr class='border-gray-200 dark:border-gray-600' />- // <li class='mt-1 ml-2'>- // <p>- // <span>${d3.timeFormat(tbsFormatMapper[timeBucket])(x)}</span> - <span>${getStringFromTime(getTimeFromSeconds(value))}</span>- // </p>- // <p>- // <span>${d3.timeFormat(tbsFormatMapper[timeBucket])(dayjs(compareChart?.x[index]).toDate())}</span> - <span>${getStringFromTime(getTimeFromSeconds(compareChart[typesOptionsToTypesCompare[id]][index]))}</span>- // </p>- // </li>- // `- // }return `<div class='flex justify-between'>@@ -578,7 +572,7 @@ const getSettings = (<hr class='border-gray-200 dark:border-gray-600' /><li class='mt-1 ml-2'><p>- <span>${d3.timeFormat(tbsFormatMapper[timeBucket])(x)}</span> - <span>${value}</span>+ <span>${timeFormat === TimeFormat['24-hour'] ? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(x) : d3.timeFormat(tbsFormatMapperTooltip[timeBucket])(x)}</span> - <span>${value}</span></p><p><span>${d3.timeFormat(tbsFormatMapper[timeBucket])(dayjs(compareChart?.x[index]).toDate())}</span> - <span>${compareChart[typesOptionsToTypesCompare[id]][index]}</span>