MCPcopy
hub / github.com/deepops-ai/deepops / isSeriesData

Function isSeriesData

ui/src/utils/seriesData.ts:59–71  ·  view source on GitHub ↗
(d: any)

Source from the content-addressed store, hash-verified

57}
58
59export const isSeriesData = (d: any) => {
60 const data: SeriesData[] = d?.flat()
61 if (isEmpty(data)) {
62 return true
63 }
64 for (const s of data) {
65 if (s.name !== undefined && s.fields !== undefined) {
66 return true
67 }
68 }
69
70 return false
71}
72
73
74// start, end, minStep : second

Callers 10

GeoMap.tsxFile · 0.90
GeoMapPanelFunction · 0.90
Table.tsxFile · 0.90
Stat.tsxFile · 0.90
BarGauge.tsxFile · 0.90
Bar.tsxFile · 0.90
GraphPanelWrapperFunction · 0.90
Graph.tsxFile · 0.90
Pie.tsxFile · 0.90
PiePanelFunction · 0.90

Calls 1

isEmptyFunction · 0.90

Tested by

no test coverage detected