@urban-toolkit/autk-plot / PlotConfig
Type Alias: PlotConfig
PlotConfig =
object
Defined in: api.ts:39
Base configuration accepted by all plot implementations.
Properties
attributes?
optionalattributes?:object
Defined in: api.ts:62
Feature property names to map to visual channels.
axis?
optionalaxis?:string[]
Property names mapped to axes.
color?
optionalcolor?:string
Property name mapped to the color channel.
categoricalColorMapInterpolator?
optionalcategoricalColorMapInterpolator?:ColorMapInterpolator
Defined in: api.ts:77
Color interpolator used when the color attribute contains categorical (string) values. Defaults to OBSERVABLE10.
collection
collection:
FeatureCollection<Geometry,GeoJsonProperties>
Defined in: api.ts:43
GeoJSON feature collection used as the plot data source.
colorMapInterpolator?
optionalcolorMapInterpolator?:ColorMapInterpolator
Defined in: api.ts:75
Color interpolator used for continuous (numeric) color encoding.
div
div:
HTMLElement
Defined in: api.ts:41
Host HTML element where the plot renders.
domainSpec?
optionaldomainSpec?:ColorMapDomainSpec
Defined in: api.ts:73
Domain specification controlling how the colormap range is derived.
events?
optionalevents?:PlotEvent[]
Defined in: api.ts:45
Interaction events the plot should emit (click, brush, etc).
height?
optionalheight?:number
Defined in: api.ts:51
Plot height in pixels. Defaults to 500.
labels?
optionallabels?:object
Defined in: api.ts:53
Display labels for axes, title, and color legend.
axis?
optionalaxis?:string[]
Labels for each axis.
color?
optionalcolor?:string
Color legend label.
title?
optionaltitle?:string
Plot title.
margins?
optionalmargins?:PlotMargins
Defined in: api.ts:47
Pixel margins around the plot drawing area.
tickFormats?
optionaltickFormats?:string[]
Defined in: api.ts:71
D3 format strings for each axis tick.
transform?
optionaltransform?:PlotTransformConfig
Defined in: api.ts:69
Optional data transform applied before rendering.
width?
optionalwidth?:number
Defined in: api.ts:49
Plot width in pixels. Defaults to 800.