Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: decimal-precision is made undefined (#1344)

Palashdd9cbcee3318
diff --git a/frontend/src/components/Graph/yAxisConfig.ts b/frontend/src/components/Graph/yAxisConfig.ts
index 44377b6fc5..5d1eeb5da7 100644
--- a/frontend/src/components/Graph/yAxisConfig.ts
+++ b/frontend/src/components/Graph/yAxisConfig.ts
@@ -7,17 +7,13 @@ export const getYAxisFormattedValue = (
let decimalPrecision: number | undefined;
const parsedValue = getValueFormat(format)(
parseFloat(value),
- 12,
- 12,
+ undefined,
+ undefined,
undefined,
);
-
try {
const decimalSplitted = parsedValue.text.split('.');
- if (
- decimalSplitted.length === 1 ||
- parseFloat(parsedValue.text) === parseInt(parsedValue.text, 10)
- ) {
+ if (decimalSplitted.length === 1) {
decimalPrecision = 0;
} else {
const decimalDigits = decimalSplitted[1].split('');