altair.theme.PointKwds#

class altair.theme.PointKwds#

altair.Point TypedDict wrapper.

Parameters:
coordinates

A Position is an array of coordinates. https://tools.ietf.org/html/rfc7946#section-3.1.1 Array should contain between two and three elements. The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), but the current specification only allows X, Y, and (optionally) Z to be defined.

Note: the type will not be narrowed down to [number, number] | [number, number, number] due to marginal benefits and the large impact of breaking change.

See previous discussions on the type narrowing:

One can use a {@link https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates user-defined type guard that returns a type predicate } to determine if a position is a 2D or 3D position.

type

Specifies the type of GeoJSON object.

bbox

Bounding box of the coordinate range of the object’s Geometries, Features, or Feature Collections. The value of the bbox member is an array of length 2*n where n is the number of dimensions represented in the contained geometries, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The axes order of a bbox follows the axes order of geometries. https://tools.ietf.org/html/rfc7946#section-5

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

clear(/)

Remove all items from the dict.

copy(/)

Return a shallow copy of the dict.

fromkeys(iterable[, value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

items(/)

Return a set-like object providing a view on the dict's items.

keys(/)

Return a set-like object providing a view on the dict's keys.

pop(key[, default])

If the key is not found, return the default if given; otherwise, raise a KeyError.

popitem(/)

Remove and return a (key, value) pair as a 2-tuple.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update([E, ]**F)

If E is present and has a .keys() method, then does: for k in E.keys(): D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values(/)

Return an object providing a view on the dict's values.

Attributes

coordinates

type

bbox