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!

y formater for chart

kruzhambus943352a207f2
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index 9c4d4d188..d3d7ed4ce 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -27,7 +27,9 @@ import JSZip from 'jszip'
import {
TimeFormat, chartTypes, tbsFormatMapper, tbsFormatMapper24h, tbsFormatMapperTooltip, tbsFormatMapperTooltip24h,
} from 'redux/constants'
-import { getTimeFromSeconds, getStringFromTime, sumArrays } from 'utils/generic'
+import {
+ getTimeFromSeconds, getStringFromTime, sumArrays, nFormatter,
+} from 'utils/generic'
import countries from 'utils/isoCountries'
import _toNumber from 'lodash/toNumber'
import _toString from 'lodash/toString'
@@ -552,6 +554,11 @@ const getSettings = (
localtime: timeFormat === TimeFormat['24-hour'],
type: 'timeseries',
},
+ y: {
+ tick: {
+ format: (d: number) => nFormatter(d, 1),
+ },
+ },
y2: {
show: activeChartMetrics.bounce || activeChartMetrics.sessionDuration,
tick: {