@grafana/viz-contract 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +201 -0
  3. package/README.md +140 -0
  4. package/fixtures/epoch-range/args.json +14 -0
  5. package/fixtures/epoch-range/meta.json +4 -0
  6. package/fixtures/epoch-range/request.json +17 -0
  7. package/fixtures/epoch-range/response.json +114 -0
  8. package/fixtures/epoch-range/result.json +252 -0
  9. package/fixtures/epoch-range/spec.json +141 -0
  10. package/fixtures/epoch-range/state.json +4 -0
  11. package/fixtures/error-all-queries-failed/spec.json +45 -0
  12. package/fixtures/error-all-queries-failed/state.json +8 -0
  13. package/fixtures/error-invalid-spec/spec.json +25 -0
  14. package/fixtures/error-invalid-spec/state.json +8 -0
  15. package/fixtures/error-unsupported-panel-type/spec.json +1372 -0
  16. package/fixtures/error-unsupported-panel-type/state.json +8 -0
  17. package/fixtures/error-unsupported-spec-version/spec.json +1372 -0
  18. package/fixtures/error-unsupported-spec-version/state.json +8 -0
  19. package/fixtures/hostile-label/args.json +14 -0
  20. package/fixtures/hostile-label/meta.json +4 -0
  21. package/fixtures/hostile-label/request.json +17 -0
  22. package/fixtures/hostile-label/response.json +420 -0
  23. package/fixtures/hostile-label/result.json +558 -0
  24. package/fixtures/hostile-label/spec.json +447 -0
  25. package/fixtures/hostile-label/state.json +4 -0
  26. package/fixtures/no-data/args.json +14 -0
  27. package/fixtures/no-data/meta.json +4 -0
  28. package/fixtures/no-data/request.json +17 -0
  29. package/fixtures/no-data/response.json +40 -0
  30. package/fixtures/no-data/result.json +178 -0
  31. package/fixtures/no-data/spec.json +67 -0
  32. package/fixtures/no-data/state.json +4 -0
  33. package/fixtures/partial-error/args.json +20 -0
  34. package/fixtures/partial-error/meta.json +4 -0
  35. package/fixtures/partial-error/request.json +28 -0
  36. package/fixtures/partial-error/response.json +220 -0
  37. package/fixtures/partial-error/result.json +358 -0
  38. package/fixtures/partial-error/spec.json +253 -0
  39. package/fixtures/partial-error/state.json +9 -0
  40. package/fixtures/pick-annotations-only/args.json +10 -0
  41. package/fixtures/pick-annotations-only/meta.json +4 -0
  42. package/fixtures/pick-annotations-only/response.json +41 -0
  43. package/fixtures/pick-annotations-only/result.json +53 -0
  44. package/fixtures/pick-categories/args.json +10 -0
  45. package/fixtures/pick-categories/meta.json +4 -0
  46. package/fixtures/pick-categories/response.json +58 -0
  47. package/fixtures/pick-categories/result.json +116 -0
  48. package/fixtures/pick-empty-result/args.json +10 -0
  49. package/fixtures/pick-empty-result/meta.json +4 -0
  50. package/fixtures/pick-empty-result/response.json +11 -0
  51. package/fixtures/pick-empty-result/result.json +23 -0
  52. package/fixtures/pick-failed-query-with-frames/args.json +10 -0
  53. package/fixtures/pick-failed-query-with-frames/meta.json +4 -0
  54. package/fixtures/pick-failed-query-with-frames/response.json +43 -0
  55. package/fixtures/pick-failed-query-with-frames/result.json +131 -0
  56. package/fixtures/pick-few-parts/args.json +10 -0
  57. package/fixtures/pick-few-parts/meta.json +4 -0
  58. package/fixtures/pick-few-parts/response.json +40 -0
  59. package/fixtures/pick-few-parts/result.json +98 -0
  60. package/fixtures/pick-heatmap-cells/args.json +10 -0
  61. package/fixtures/pick-heatmap-cells/meta.json +4 -0
  62. package/fixtures/pick-heatmap-cells/response.json +55 -0
  63. package/fixtures/pick-heatmap-cells/result.json +143 -0
  64. package/fixtures/pick-log-lines/args.json +10 -0
  65. package/fixtures/pick-log-lines/meta.json +4 -0
  66. package/fixtures/pick-log-lines/response.json +49 -0
  67. package/fixtures/pick-log-lines/result.json +76 -0
  68. package/fixtures/pick-no-rows/args.json +10 -0
  69. package/fixtures/pick-no-rows/meta.json +4 -0
  70. package/fixtures/pick-no-rows/response.json +32 -0
  71. package/fixtures/pick-no-rows/result.json +120 -0
  72. package/fixtures/pick-node-graph/args.json +10 -0
  73. package/fixtures/pick-node-graph/meta.json +4 -0
  74. package/fixtures/pick-node-graph/response.json +77 -0
  75. package/fixtures/pick-node-graph/result.json +89 -0
  76. package/fixtures/pick-numeric-only/args.json +10 -0
  77. package/fixtures/pick-numeric-only/meta.json +4 -0
  78. package/fixtures/pick-numeric-only/response.json +40 -0
  79. package/fixtures/pick-numeric-only/result.json +89 -0
  80. package/fixtures/pick-single-stat/args.json +10 -0
  81. package/fixtures/pick-single-stat/meta.json +4 -0
  82. package/fixtures/pick-single-stat/response.json +29 -0
  83. package/fixtures/pick-single-stat/result.json +69 -0
  84. package/fixtures/pick-time-series-instant/args.json +10 -0
  85. package/fixtures/pick-time-series-instant/meta.json +4 -0
  86. package/fixtures/pick-time-series-instant/response.json +40 -0
  87. package/fixtures/pick-time-series-instant/result.json +128 -0
  88. package/fixtures/pick-time-series-long/args.json +10 -0
  89. package/fixtures/pick-time-series-long/meta.json +4 -0
  90. package/fixtures/pick-time-series-long/response.json +61 -0
  91. package/fixtures/pick-time-series-long/result.json +167 -0
  92. package/fixtures/pick-time-series-multi-frame/args.json +10 -0
  93. package/fixtures/pick-time-series-multi-frame/meta.json +4 -0
  94. package/fixtures/pick-time-series-multi-frame/response.json +74 -0
  95. package/fixtures/pick-time-series-multi-frame/result.json +162 -0
  96. package/fixtures/pick-time-series-null-time/args.json +10 -0
  97. package/fixtures/pick-time-series-null-time/meta.json +4 -0
  98. package/fixtures/pick-time-series-null-time/response.json +40 -0
  99. package/fixtures/pick-time-series-null-time/result.json +128 -0
  100. package/fixtures/pick-time-series-single/args.json +10 -0
  101. package/fixtures/pick-time-series-single/meta.json +4 -0
  102. package/fixtures/pick-time-series-single/response.json +40 -0
  103. package/fixtures/pick-time-series-single/result.json +128 -0
  104. package/fixtures/pick-time-series-wide/args.json +10 -0
  105. package/fixtures/pick-time-series-wide/meta.json +4 -0
  106. package/fixtures/pick-time-series-wide/response.json +61 -0
  107. package/fixtures/pick-time-series-wide/result.json +149 -0
  108. package/fixtures/prometheus-line/args.json +14 -0
  109. package/fixtures/prometheus-line/meta.json +4 -0
  110. package/fixtures/prometheus-line/request.json +17 -0
  111. package/fixtures/prometheus-line/response.json +1344 -0
  112. package/fixtures/prometheus-line/result.json +1483 -0
  113. package/fixtures/prometheus-line/spec.json +1372 -0
  114. package/fixtures/prometheus-line/state.json +4 -0
  115. package/fixtures/smoke-barchart/spec.json +64 -0
  116. package/fixtures/smoke-barchart/state.json +4 -0
  117. package/fixtures/smoke-boxplot/spec.json +96 -0
  118. package/fixtures/smoke-boxplot/state.json +4 -0
  119. package/fixtures/smoke-bubble/spec.json +229 -0
  120. package/fixtures/smoke-bubble/state.json +4 -0
  121. package/fixtures/smoke-candlestick/spec.json +97 -0
  122. package/fixtures/smoke-candlestick/state.json +4 -0
  123. package/fixtures/smoke-chord/spec.json +72 -0
  124. package/fixtures/smoke-chord/state.json +4 -0
  125. package/fixtures/smoke-funnel/spec.json +62 -0
  126. package/fixtures/smoke-funnel/state.json +4 -0
  127. package/fixtures/smoke-geomap/spec.json +76 -0
  128. package/fixtures/smoke-geomap/state.json +4 -0
  129. package/fixtures/smoke-heatmap/spec.json +103 -0
  130. package/fixtures/smoke-heatmap/state.json +4 -0
  131. package/fixtures/smoke-histogram/spec.json +63 -0
  132. package/fixtures/smoke-histogram/state.json +4 -0
  133. package/fixtures/smoke-nodeGraph/spec.json +101 -0
  134. package/fixtures/smoke-nodeGraph/state.json +4 -0
  135. package/fixtures/smoke-parallel/spec.json +78 -0
  136. package/fixtures/smoke-parallel/state.json +4 -0
  137. package/fixtures/smoke-piechart/spec.json +62 -0
  138. package/fixtures/smoke-piechart/state.json +4 -0
  139. package/fixtures/smoke-radar/spec.json +82 -0
  140. package/fixtures/smoke-radar/state.json +4 -0
  141. package/fixtures/smoke-sankey/spec.json +72 -0
  142. package/fixtures/smoke-sankey/state.json +4 -0
  143. package/fixtures/smoke-state-timeline/spec.json +64 -0
  144. package/fixtures/smoke-state-timeline/state.json +4 -0
  145. package/fixtures/smoke-status-history/spec.json +64 -0
  146. package/fixtures/smoke-status-history/state.json +4 -0
  147. package/fixtures/smoke-streamgraph/spec.json +229 -0
  148. package/fixtures/smoke-streamgraph/state.json +4 -0
  149. package/fixtures/smoke-sunburst/spec.json +72 -0
  150. package/fixtures/smoke-sunburst/state.json +4 -0
  151. package/fixtures/smoke-timeseries/spec.json +163 -0
  152. package/fixtures/smoke-timeseries/state.json +4 -0
  153. package/fixtures/smoke-treemap/spec.json +72 -0
  154. package/fixtures/smoke-treemap/state.json +4 -0
  155. package/fixtures/too-large/args.json +14 -0
  156. package/fixtures/too-large/meta.json +4 -0
  157. package/fixtures/type-mismatch/args.json +15 -0
  158. package/fixtures/type-mismatch/meta.json +4 -0
  159. package/fixtures/type-mismatch/request.json +17 -0
  160. package/fixtures/type-mismatch/response.json +1344 -0
  161. package/fixtures/type-mismatch/result.json +9 -0
  162. package/package.json +32 -0
  163. package/registry/chart-types.json +170 -0
  164. package/registry/constants.json +14 -0
  165. package/registry/notices.json +40 -0
  166. package/registry/panel-types.json +14 -0
  167. package/registry/pick.json +46 -0
  168. package/registry/states.json +85 -0
  169. package/renderer-api.d.ts +70 -0
  170. package/schemas/bundled/query-datasource-args.schema.json +86 -0
  171. package/schemas/bundled/registry.schema.json +375 -0
  172. package/schemas/bundled/tool-result.schema.json +245 -0
  173. package/schemas/bundled/viz-spec.schema.json +261 -0
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "bar"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "fields": [
31
+ {
32
+ "name": "host",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "cpu",
37
+ "type": "number"
38
+ }
39
+ ]
40
+ },
41
+ "data": {
42
+ "values": [
43
+ [
44
+ "host-0",
45
+ "host-1",
46
+ "host-2",
47
+ "host-3",
48
+ "host-4"
49
+ ],
50
+ [
51
+ 71,
52
+ 54,
53
+ 33,
54
+ 62,
55
+ 48
56
+ ]
57
+ ]
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,96 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "boxplot"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "fields": [
31
+ {
32
+ "name": "service",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "min",
37
+ "type": "number"
38
+ },
39
+ {
40
+ "name": "q1",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "median",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "q3",
49
+ "type": "number"
50
+ },
51
+ {
52
+ "name": "max",
53
+ "type": "number"
54
+ }
55
+ ]
56
+ },
57
+ "data": {
58
+ "values": [
59
+ [
60
+ "api",
61
+ "web",
62
+ "db"
63
+ ],
64
+ [
65
+ 5,
66
+ 3,
67
+ 8
68
+ ],
69
+ [
70
+ 12,
71
+ 9,
72
+ 15
73
+ ],
74
+ [
75
+ 20,
76
+ 14,
77
+ 22
78
+ ],
79
+ [
80
+ 31,
81
+ 22,
82
+ 30
83
+ ],
84
+ [
85
+ 55,
86
+ 40,
87
+ 48
88
+ ]
89
+ ]
90
+ }
91
+ }
92
+ ]
93
+ }
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,229 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartsstream-panel",
5
+ "options": {
6
+ "streamChartType": "bubble"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "meta": {
31
+ "type": "timeseries-multi",
32
+ "typeVersion": [
33
+ 0,
34
+ 1
35
+ ]
36
+ },
37
+ "fields": [
38
+ {
39
+ "name": "Time",
40
+ "type": "time",
41
+ "typeInfo": {
42
+ "frame": "time.Time"
43
+ }
44
+ },
45
+ {
46
+ "name": "Value",
47
+ "type": "number",
48
+ "typeInfo": {
49
+ "frame": "float64"
50
+ },
51
+ "labels": {
52
+ "service": "web"
53
+ },
54
+ "config": {
55
+ "displayNameFromDS": "web"
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "data": {
61
+ "values": [
62
+ [
63
+ 1790352817294,
64
+ 1790352877294,
65
+ 1790352937294,
66
+ 1790352997294,
67
+ 1790353057294,
68
+ 1790353117294,
69
+ 1790353177294,
70
+ 1790353237294,
71
+ 1790353297294,
72
+ 1790353357294,
73
+ 1790353417294,
74
+ 1790353477294
75
+ ],
76
+ [
77
+ 20,
78
+ 21.64,
79
+ 23.09,
80
+ 24.21,
81
+ 24.86,
82
+ 24.98,
83
+ 24.55,
84
+ 23.62,
85
+ 22.29,
86
+ 20.71,
87
+ 19.05,
88
+ 17.49
89
+ ]
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ "schema": {
95
+ "refId": "A",
96
+ "meta": {
97
+ "type": "timeseries-multi",
98
+ "typeVersion": [
99
+ 0,
100
+ 1
101
+ ]
102
+ },
103
+ "fields": [
104
+ {
105
+ "name": "Time",
106
+ "type": "time",
107
+ "typeInfo": {
108
+ "frame": "time.Time"
109
+ }
110
+ },
111
+ {
112
+ "name": "Value",
113
+ "type": "number",
114
+ "typeInfo": {
115
+ "frame": "float64"
116
+ },
117
+ "labels": {
118
+ "service": "api"
119
+ },
120
+ "config": {
121
+ "displayNameFromDS": "api"
122
+ }
123
+ }
124
+ ]
125
+ },
126
+ "data": {
127
+ "values": [
128
+ [
129
+ 1790352817294,
130
+ 1790352877294,
131
+ 1790352937294,
132
+ 1790352997294,
133
+ 1790353057294,
134
+ 1790353117294,
135
+ 1790353177294,
136
+ 1790353237294,
137
+ 1790353297294,
138
+ 1790353357294,
139
+ 1790353417294,
140
+ 1790353477294
141
+ ],
142
+ [
143
+ 34.21,
144
+ 34.86,
145
+ 34.98,
146
+ 34.55,
147
+ 33.62,
148
+ 32.29,
149
+ 30.71,
150
+ 29.05,
151
+ 27.49,
152
+ 26.22,
153
+ 25.35,
154
+ 25.01
155
+ ]
156
+ ]
157
+ }
158
+ },
159
+ {
160
+ "schema": {
161
+ "refId": "A",
162
+ "meta": {
163
+ "type": "timeseries-multi",
164
+ "typeVersion": [
165
+ 0,
166
+ 1
167
+ ]
168
+ },
169
+ "fields": [
170
+ {
171
+ "name": "Time",
172
+ "type": "time",
173
+ "typeInfo": {
174
+ "frame": "time.Time"
175
+ }
176
+ },
177
+ {
178
+ "name": "Value",
179
+ "type": "number",
180
+ "typeInfo": {
181
+ "frame": "float64"
182
+ },
183
+ "labels": {
184
+ "service": "db"
185
+ },
186
+ "config": {
187
+ "displayNameFromDS": "db"
188
+ }
189
+ }
190
+ ]
191
+ },
192
+ "data": {
193
+ "values": [
194
+ [
195
+ 1790352817294,
196
+ 1790352877294,
197
+ 1790352937294,
198
+ 1790352997294,
199
+ 1790353057294,
200
+ 1790353117294,
201
+ 1790353177294,
202
+ 1790353237294,
203
+ 1790353297294,
204
+ 1790353357294,
205
+ 1790353417294,
206
+ 1790353477294
207
+ ],
208
+ [
209
+ 44.55,
210
+ 43.62,
211
+ 42.29,
212
+ 40.71,
213
+ 39.05,
214
+ 37.49,
215
+ 36.22,
216
+ 35.35,
217
+ 35.01,
218
+ 35.21,
219
+ 35.93,
220
+ 37.11
221
+ ]
222
+ ]
223
+ }
224
+ }
225
+ ]
226
+ }
227
+ }
228
+ }
229
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "candlestick"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "fields": [
31
+ {
32
+ "name": "time",
33
+ "type": "time"
34
+ },
35
+ {
36
+ "name": "open",
37
+ "type": "number"
38
+ },
39
+ {
40
+ "name": "high",
41
+ "type": "number"
42
+ },
43
+ {
44
+ "name": "low",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "close",
49
+ "type": "number"
50
+ }
51
+ ]
52
+ },
53
+ "data": {
54
+ "values": [
55
+ [
56
+ 1790352817294,
57
+ 1790352877294,
58
+ 1790352937294,
59
+ 1790352997294,
60
+ 1790353057294
61
+ ],
62
+ [
63
+ 10,
64
+ 11,
65
+ 12,
66
+ 11,
67
+ 13
68
+ ],
69
+ [
70
+ 12,
71
+ 13,
72
+ 14,
73
+ 13,
74
+ 15
75
+ ],
76
+ [
77
+ 9,
78
+ 10,
79
+ 11,
80
+ 10,
81
+ 12
82
+ ],
83
+ [
84
+ 11,
85
+ 12,
86
+ 11,
87
+ 13,
88
+ 14
89
+ ]
90
+ ]
91
+ }
92
+ }
93
+ ]
94
+ }
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-relations-panel",
5
+ "options": {
6
+ "seriesType": "chord"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "fields": [
31
+ {
32
+ "name": "source",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "target",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "name": "value",
41
+ "type": "number"
42
+ }
43
+ ]
44
+ },
45
+ "data": {
46
+ "values": [
47
+ [
48
+ "api",
49
+ "db",
50
+ "cache",
51
+ "api"
52
+ ],
53
+ [
54
+ "db",
55
+ "cache",
56
+ "api",
57
+ "cache"
58
+ ],
59
+ [
60
+ 50,
61
+ 20,
62
+ 15,
63
+ 30
64
+ ]
65
+ ]
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,62 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartsparttowhole-panel",
5
+ "options": {
6
+ "seriesType": "funnel"
7
+ },
8
+ "datasource": {
9
+ "uid": "testdata"
10
+ },
11
+ "targets": [
12
+ {
13
+ "refId": "A"
14
+ }
15
+ ]
16
+ },
17
+ "data": {
18
+ "range": {
19
+ "from": 1790349877294,
20
+ "to": 1790353477294
21
+ },
22
+ "capturedAt": 1790353477806,
23
+ "results": {
24
+ "A": {
25
+ "status": 200,
26
+ "frames": [
27
+ {
28
+ "schema": {
29
+ "refId": "A",
30
+ "fields": [
31
+ {
32
+ "name": "stage",
33
+ "type": "string"
34
+ },
35
+ {
36
+ "name": "users",
37
+ "type": "number"
38
+ }
39
+ ]
40
+ },
41
+ "data": {
42
+ "values": [
43
+ [
44
+ "visit",
45
+ "sign-up",
46
+ "trial",
47
+ "paid"
48
+ ],
49
+ [
50
+ 10000,
51
+ 2400,
52
+ 900,
53
+ 210
54
+ ]
55
+ ]
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }