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(dashboards): label unstacked bar layout as overlap (#13369)

Abhi kumar65084ba064a3
diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/controls/drawings/tileDrawings.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/controls/drawings/tileDrawings.tsx
index 149d774973..8e11950f5d 100644
--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/controls/drawings/tileDrawings.tsx
+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/controls/drawings/tileDrawings.tsx
@@ -164,12 +164,12 @@ export const TILE_DRAWINGS = {
<path d="M4 20 C 20 20, 22 12, 32 12 S 44 4, 60 4" />
</TileSvg>
),
- barsSideBySide: (
+ barsOverlap: (
<TileSvg>
- <rect x={10} y={10} width={7} height={12} {...FILLED} opacity={0.5} />
- <rect x={18} y={4} width={7} height={18} {...FILLED} />
- <rect x={36} y={12} width={7} height={10} {...FILLED} opacity={0.5} />
- <rect x={44} y={7} width={7} height={15} {...FILLED} />
+ <rect x={14} y={6} width={11} height={16} {...FILLED} opacity={0.5} />
+ <rect x={14} y={12} width={11} height={10} {...FILLED} />
+ <rect x={38} y={10} width={11} height={12} {...FILLED} opacity={0.5} />
+ <rect x={38} y={14} width={11} height={8} {...FILLED} />
</TileSvg>
),
barsStacked: (
diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/VisualizationSection.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/VisualizationSection.tsx
index 07475912ce..5af46c26a7 100644
--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/VisualizationSection.tsx
+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/VisualizationSection.tsx
@@ -56,7 +56,7 @@ function VisualizationSection({
value?.timePreference ?? DashboardtypesTimePreferenceDTO.global_time;
const barLayout = value?.stackedBarChart
? BarLayout.STACKED
- : BarLayout.SIDE_BY_SIDE;
+ : BarLayout.OVERLAP;
const stack = value?.stack ?? defaultValue?.stack;
return (
diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/options.ts b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/options.ts
index 4dc268c30a..75f2063604 100644
--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/options.ts
+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/sections/VisualizationSection/options.ts
@@ -4,15 +4,15 @@ import type { ConfigTileItem } from '../../controls/ConfigTiles/ConfigTiles';
import { TILE_DRAWINGS } from '../../controls/drawings/tileDrawings';
export enum BarLayout {
- SIDE_BY_SIDE = 'side',
+ OVERLAP = 'overlap',
STACKED = 'stacked',
}
export const BAR_LAYOUT_OPTIONS: ConfigTileItem<BarLayout>[] = [
{
- value: BarLayout.SIDE_BY_SIDE,
- label: 'Side by side',
- drawing: TILE_DRAWINGS.barsSideBySide,
+ value: BarLayout.OVERLAP,
+ label: 'Overlap',
+ drawing: TILE_DRAWINGS.barsOverlap,
},
{
value: BarLayout.STACKED,
@@ -22,8 +22,7 @@ export const BAR_LAYOUT_OPTIONS: ConfigTileItem<BarLayout>[] = [
];
export const BAR_LAYOUT_HELP: Record<BarLayout, string> = {
- [BarLayout.SIDE_BY_SIDE]:
- 'Each series gets its own bar, side by side, for easy comparison.',
+ [BarLayout.OVERLAP]: 'Each series is drawn from zero and may hide others.',
[BarLayout.STACKED]:
'Bars sit on top of each other, so the height shows the total.',
};