From afd5f417804e4e0dd29652546c446ddd625e0c8a Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Thu, 2 Mar 2023 12:00:40 +0100 Subject: [PATCH] StatPanel: Fix issue where sparkline chart was not being shown on resize (#63942) --- .../grafana-ui/src/components/BigValue/BigValueLayout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx b/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx index d5896cbac07..9d2d38d3970 100644 --- a/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx +++ b/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx @@ -415,6 +415,10 @@ export class StackedWithNoChartLayout extends BigValueLayout { return styles; } + renderChart(): JSX.Element | null { + return null; + } + getPanelStyles() { const styles = super.getPanelStyles(); styles.alignItems = 'center';