[Vega] use %type% in docs (#89453) (#89884)

# Conflicts:
#	docs/user/dashboard/vega-reference.asciidoc
This commit is contained in:
Thomas Neirynck 2021-02-02 09:46:46 -05:00 committed by GitHub
parent f6095badd0
commit 5a30ea911e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,6 +213,26 @@ also supported. The `"interval"` can also be set dynamically, depending
on the currently picked range: `"interval": {"%autointerval%": 10}` will
try to get about 10-15 data points (buckets).
[float]
[[vega-esmfiles]]
===== Access Elastic Map Service files
experimental[] Access the Elastic Map Service files via the same mechanism:
[source,yaml]
----
url: {
// "type" defaults to "elasticsearch" otherwise
%type%: emsfile
// Name of the file, exactly as in the Region map visualization
name: World Countries
}
// The result is a geojson file, get its features to use
// this data source with the "shape" marks
// https://vega.github.io/vega/docs/marks/shape/
format: {property: "features"}
----
[float]
[[vega-with-a-map]]
==== Vega with a Map
@ -270,7 +290,7 @@ vector shapes of administrative boundaries in your Vega map by setting `url.data
----
url: {
// "type" defaults to "elasticsearch" otherwise
type: emsfile
%type%: emsfile
// Name of the file, exactly as in the Region map visualization
name: World Countries
}