mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panels: Use the No value option when showing the no data message (#47675)
* Performance: Create separate div for portal root to limit reflow -> recalc style * refactoring * NoData: Use field config No value option as text when display no data message * Use PanelDataErrorView in TabelPanel * Add PanelDataErrorView to PieChart * Updated
This commit is contained in:
@@ -36,7 +36,15 @@ export const TimeSeriesPanel: React.FC<TimeSeriesPanelProps> = ({
|
||||
const frames = useMemo(() => prepareGraphableFields(data.series, config.theme2), [data]);
|
||||
|
||||
if (!frames) {
|
||||
return <PanelDataErrorView panelId={id} data={data} needsTimeField={true} needsNumberField={true} />;
|
||||
return (
|
||||
<PanelDataErrorView
|
||||
panelId={id}
|
||||
fieldConfig={fieldConfig}
|
||||
data={data}
|
||||
needsTimeField={true}
|
||||
needsNumberField={true}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const enableAnnotationCreation = Boolean(canAddAnnotations && canAddAnnotations());
|
||||
|
||||
Reference in New Issue
Block a user