Create SVG

Create an svg from a set of layers defined by regions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Country abbreviation.

string
required

Data version for the country.

string
required

A country's region level.

Body Params
integer
required
≥ 1
integer
required
≥ 1
codes
style
object
fgLayers
array of objects
length ≤ 10

Drawn front to back (first in front, last in back). Foreground layers are drawn in front of the base request layer and background layers. Non-renderable regions will not be included in the SVG layer. If the primary layer is not renderable the bottom-most renderable layer of the SVG will be chosen as the primary layer instead.

An ordered list of foreground layers to add to the SVG
bgLayers
array of objects
length ≤ 10

Drawn front to back (first in front, last in back). Background layers are drawn behind the foreground layers and base request layer. Non-renderable regions will not be included in the SVG layer. If the primary layer is not renderable the bottom-most renderable layer of the SVG will be chosen as the primary layer instead.

An ordered list of background layers to add to the SVG
choroplethFill
object

Only applies if codes is an object of values keyed to their respective codes. The values will be normalized to their respective fill color based on if they are positive, zero, or negative. These values will overwrite any style fill specified.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json