url -package:js-jquery

A library for working with URLs. A library for working with URLs.
Write an URL hyperlinked.
Encode a URL for use with the Image mark type. The URL can be encoded directly:
let axVals = Numbers [ 0.5, 1.5, 2.5 ]

dvals = dataFromColumns []
. dataColumn "x" axVals
. dataColumn "y" axVals

enc = encoding
. position X [ PName "x", PmType Quantitative ]
. position Y [ PName "y", PmType Quantitative ]
. url [ HString "wonderful-image.png" ]

imMark = mark Image [ MWidth 50, MHeight 25 ]

in toVegaLite [ dvals [], enc [], imMark ]
or by referencing a data field containing the URL values:
... dataColumn "img" (Strings [ "i1.png", "i2.png", "i4.png" ])

... url [ HName "img", HmType Nominal ]
URL or absolute file path
Shorthand for URL.
Relative url (to current domain) to download nar file.
Creates a value of URL with the minimum fields required to make a request. Use one of the following lenses to modify other fields as desired:
The result image URL.
The result web page URL.
The result image URL.
The result web page URL.
The result image URL.
The result web page URL.
The result image URL.
The result web page URL.
The result image URL.
The result web page URL.
A quasiquoter to build a URL by interpolating values via ToHttpApiData. The resulting value can be any IsString type. Currently only supports single variable names being interpolated, not arbitrary Haskell expressions. Usage:
>>> [url|/foo/#{fooId}/bar|]