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.

feat: increase chart point visibility (#2185)

volodfastde370d7f0c9f
diff --git a/frontend/src/components/Graph/index.tsx b/frontend/src/components/Graph/index.tsx
index 20ffc5a22c..2b6435d106 100644
--- a/frontend/src/components/Graph/index.tsx
+++ b/frontend/src/components/Graph/index.tsx
@@ -240,6 +240,16 @@ function Graph({
tension: 0,
cubicInterpolationMode: 'monotone',
},
+ point: {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ hoverBackgroundColor: (ctx: any) => {
+ if (ctx?.element?.options?.borderColor) {
+ return ctx.element.options.borderColor;
+ }
+ return 'rgba(0,0,0,0.1)';
+ },
+ hoverRadius: 5,
+ },
},
onClick: (event, element, chart) => {
if (onClickHandler) {