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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: color for the graph is updated (#305)
Palashda653681cf28
diff --git a/frontend/src/lib/getChartData.ts b/frontend/src/lib/getChartData.tsindex 71d40d57b2..6830666cab 100644--- a/frontend/src/lib/getChartData.ts+++ b/frontend/src/lib/getChartData.ts@@ -23,11 +23,9 @@ const getChartData = ({ queryData }: GetChartDataProps): ChartData => {};});- const color = colors[index] || 'red';return {label: labelNames,first: dataValue.map((e) => e.first),- borderColor: color,second: dataValue.map((e) => e.second),};});@@ -37,10 +35,6 @@ const getChartData = ({ queryData }: GetChartDataProps): ChartData => {.map((e) => e.map((e) => e.label)).reduce((a, b) => [...a, ...b], []);- const allColor = response- .map((e) => e.map((e) => e.borderColor))- .reduce((a, b) => [...a, ...b], []);-const alldata = response.map((e) => e.map((e) => e.second)).reduce((a, b) => [...a, ...b], []);@@ -53,7 +47,7 @@ const getChartData = ({ queryData }: GetChartDataProps): ChartData => {borderWidth: 1.5,spanGaps: true,animations: false,- borderColor: allColor[index],+ borderColor: colors[index] || 'red',showLine: true,pointRadius: 0,};