You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user/dashboard/vega-reference.asciidoc
+29-29
Original file line number
Diff line number
Diff line change
@@ -216,24 +216,8 @@ on the currently picked range: `"interval": {"%autointerval%": 10}` will
216
216
try to get about 10-15 data points (buckets).
217
217
218
218
[float]
219
-
[[vega-esmfiles]]
220
-
=== Access Elastic Map Service files
221
-
222
-
experimental[] Access the Elastic Map Service files via the same mechanism:
223
-
224
-
[source,yaml]
225
-
----
226
-
url: {
227
-
// "type" defaults to "elasticsearch" otherwise
228
-
type: emsfile
229
-
// Name of the file, exactly as in the Region map visualization
230
-
name: World Countries
231
-
}
232
-
// The result is a geojson file, get its features to use
233
-
// this data source with the "shape" marks
234
-
// https://vega.github.io/vega/docs/marks/shape/
235
-
format: {property: "features"}
236
-
----
219
+
[[vega-with-a-map]]
220
+
=== Vega with a Map
237
221
238
222
To enable Maps, the graph must specify `type=map` in the host
239
223
configuration:
@@ -282,6 +266,22 @@ Additionally, you can use `latitude`, `longitude`, and `zoom` signals.
282
266
These signals can be used in the graph, or can be updated to modify the
283
267
position of the map.
284
268
269
+
experimental[] You can use Vega's https://vega.github.io/vega/docs/data/[data] element to access https://www.elastic.co/elastic-maps-service[Elastic Maps Service (EMS)] vector shapes of administrative boundaries in your Vega map by setting `url.data` to `emsFile`:
270
+
271
+
[source,yaml]
272
+
----
273
+
url: {
274
+
// "type" defaults to "elasticsearch" otherwise
275
+
type: emsfile
276
+
// Name of the file, exactly as in the Region map visualization
277
+
name: World Countries
278
+
}
279
+
// The result is a geojson file, get its features to use
280
+
// this data source with the "shape" marks
281
+
// https://vega.github.io/vega/docs/marks/shape/
282
+
format: {property: "features"}
283
+
----
284
+
285
285
[float]
286
286
[[vega-tooltip]]
287
287
==== Additional tooltip styling
@@ -308,22 +308,22 @@ a configuration option for changing the tooltip position and padding:
308
308
[[vega-url-loading]]
309
309
==== Advanced setting to enable URL loading from any domain
310
310
311
-
Vega can load data from any URL, but this is disabled by default in {kib}.
311
+
Vega can load data from any URL, but this is disabled by default in {kib}.
312
312
To change this, set `vis_type_vega.enableExternalUrls: true` in `kibana.yml`,
313
313
then restart {kib}.
314
314
315
315
[float]
316
316
[[vega-inspector]]
317
317
==== Vega Inspector
318
-
Use the contextual *Inspect* tool to gain insights into different elements.
318
+
Use the contextual *Inspect* tool to gain insights into different elements.
319
319
For Vega visualizations, there are two different views: *Request* and *Vega debug*.
320
320
321
321
[float]
322
322
[[inspect-elasticsearch-requests]]
323
323
===== Inspect {es} requests
324
324
325
-
Vega uses the {ref}/search-search.html[{es} search API] to get documents and aggregation
326
-
results from {es}. To troubleshoot these requests, click *Inspect*, which shows the most recent requests.
325
+
Vega uses the {ref}/search-search.html[{es} search API] to get documents and aggregation
326
+
results from {es}. To troubleshoot these requests, click *Inspect*, which shows the most recent requests.
327
327
In case your specification has more than one request, you can switch between the views using the *View* dropdown.
0 commit comments