Elicit.js

API reference

Every name you can write in a spec: 180 members across 9 namespaces, from elicitjs@0.5.0-alpha.0. Search matches option names as well as factory names, so handleSize finds every mark that takes it. Each entry links to the page documenting it.

plot

Marks draw the rows of your dataset.

every member also takeschannelsideditstabletipclipmotioncontains
outerRadiusinnerRadiuspadAnglearcstartendhandleshandleSizehandleColor
orientationcurvehandleshandleSizehandleColorconnectgradient
universal options only
universal options only
orientationhandleshandleSizehandleColorgradientcornerRadius
universal options only
universal options only
universal options only
universal options only
universal options only
orientationgapghostlabel
universal options only
universal options only
universal options only
geojsonstrokestrokeWidthfill
handleshandleSizehandleColorclosed
universal options only
handleshandleSizehandleColor
universal options only
urlsubdomainstileSizeminZoommaxZoomzoomOffsetattributionattributionSizeopacity
universal options only
orientationcurvehandleshandleSizehandleColorconnectclosed
universal options only
universal options only
curvecurvaturespreadarrowarrowSizeinsetsourceInsettargetInsetloopRadiusformatlabelBackgroundlabelPaddinglabelRadiuslabelOpacitycornerRadiussourceSidetargetSidesourceOffsettargetOffsethandleshandleSizehandleColor
lengthhandleshandleSizehandleColorbaseWidthtipWidth
universal options only
universal options only
orientationwidthheightcornerRadiusgradient
universal options only
universal options only
orientationdiscreteScale
universal options only
universal options only
universal options only
paddingcornerRadiusmaxWidthminWidthminHeightlineHeightformat
orientationformatwraplineHeight
universal options only
universal options only
orientationinsetlength
universal options only
universal options only
anchorprobegriphandleshandleSizehandleColor
renderlevelssamplesseedsigmadistributionanchorprobegriphandleshandleSizehandleColor
orientationunitmultiplegapshapeshowEmptyemptyFill
universal options only
universal options only

elements

Chart elements draw a scale: axes, grids and legends.

every member also takesidediteditsfieldtable
channelanchortransformtickstickValuestickFormattickSizetickPaddingtitletitleAnglestrokestrokeWidthlinefillfontSizefontFamilyfontWeightlabelAngletitleFilltitleFontSizetitleFontWeighttitlePaddingtitleAnchorlabelAlignlabelOffsetoffsetgridhandleColorhandleSize
channelchannelsouterRadiusinnerRadiusbandWidthtickstickValuestickFormattickSizetickPaddingbandstitlefillstrokestrokeWidthfontSize
universal options only
universal options only
channeltickstickValuesstrokestrokeWidthstrokeDashopacityzerobandPosition
universal options only
universal options only
channelanchororientationswatchSizegaplabelWidthrampLengthrampThicknesstickstickFormattitlerowstrokefillfontSizehandleColorhandleSize

edit.axis

edit

Edits map a gesture back through a scale to write a column.

every member also takestypenamegesturechannelchannelswhenpickthresholdscopeconstrainguidestageadvancetargetcardinalityinvertsviewportmagnifiestableapplytargetscursorgrabs

edit.geo

edit.hierarchy

edit.legend

edit.line

edit.network

edit.scale

edit.stack

edit.trend

edit.view

edit.waffle

universal options only

edit.when

universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only

constraints

Constraints are rules over the dataset. Each one rejects or repairs every edit.

every member also takestable

layout

Layouts arrange and space marks in pixel space after each edit, writing the settled boxes back to the data.

every member also takestablewhere

layout.hierarchy

layout.network

universal options only
universal options only
universal options only

guides

Guides draw reference lines and interaction state. They never write data.

every member also takesid
xyreadoutstrokestrokeDashfontSizeformattouch
srcxyfitpositionrepeatopacity
labelOffsetsizecontrol
markstrokestrokeDashstrokeWidthopacity
xyfillopacitystrokelabel
fieldtotalunitformatanchorlabelfillfontSize
xystrokestrokeDashstrokeWidthopacitylabel
marktextanchordxdyfillstrokefontSizeformattouch

looks

Looks change how the finished chart is drawn: by hand, or through a shader. Experimental.

every member also takesscope

widgets

Widgets are complete survey instruments. Each returns a spec.

universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only
universal options only

format

Formatters turn a value into a string for a label or an axis.

universal options only
universal options only
universal options only
universal options only
universal options only
universal options only

Top-level exports

Imported from elicitjs directly, beside the namespaces above.

D3Rendererfunction
DEFAULT_THEMEobject
Elicitfunction
compilefunction
onWarningfunction
recorderfunction
resolveThemefunction
setThemefunction
setWarningsfunction
themesobject
uiobject

Authoring kit

elicitjs/authoring — encodeChannel, makeEdit, registerDriver and the rest — is listed separately on Authoring SDK. Use it to build your own marks and edits. It is not spec vocabulary, so it is not indexed here.