mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
show warning when too many points in status grid (#34456)
This commit is contained in:
parent
812dac140e
commit
a9c0b08ac3
@ -38,6 +38,18 @@ export const StatusGridPanel: React.FC<TimelinePanelProps> = ({
|
||||
);
|
||||
}
|
||||
|
||||
// Status grid requires some space between values
|
||||
if (frames[0].length > width / 2) {
|
||||
return (
|
||||
<div className="panel-empty">
|
||||
<p>
|
||||
Too many points to visualize properly. <br />
|
||||
Update the query to return fewer points. <br />({frames[0].length} points recieved)
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<TimelineChart
|
||||
theme={theme}
|
||||
|
Loading…
Reference in New Issue
Block a user