v2.0.0-alpha.3 – Interaction Support in Unit Specifications & Config Revision
Pre-release
Pre-release
kanitw
released this
01 Mar 17:38
·
5404 commits
to master
since this release
Breaking Syntax Revision
Revise Axis/Legend Config to match Vega 3 and leverage config parser in Vega 3's parser.
Axis
- Rename
axisWidth
todomainWidth
,axisColor
todomainColor
,tickLabelColor
tolabelColor
,tickLabelFont
tolabelFont
,tickLabelFontSize
tolabelFontSize
,tickPadding
tolabelPadding
,titleOffset
totitlePadding
- Separate Axis from AxisConfig. Make these properties only available as
Axis
properties:domain
,grid
,labels
,labelMaxLength
,labelPadding
,maxExtent
,minExtent
,offset
,position
,shortTimeLabels
,ticks
,tickCount
,tickSize
,titleMaxLength
,titlePadding
,zindex
- Remove
labelAlign
,labelBaseline
,subdivide
,tickSizeMajor
,tickSizeMinor
,tickSizeEnd
from Axis Config
Legend
- Add
symbolType
- Remove
margin
,symbolShape
from Legend Config - Separate Legend from LegendConfig. Make these properties only available as Legend properties:
entryPadding
,orient
,offset
,padding
,tickCount
,zindex
- Remove related code for Vega Legend configs
Scale
- Range config for scale are now available inside
config.scale.*
(e.g.,config.scale.minSize
,config.scale.shapes
)
Extend Mark Syntax
- Make mark property can be either a mark type or (new) a mark definition object
- Separate CompositeMark such as
"error-bar"
from (primitive) Mark …- Provide API for registering new type of compositeMark
Interaction Syntax
Initial support for specifying interactive behaviours within unit specifications. Four example specifications demonstrate interactive brushing, highlighting, panning & zooming, and dynamic query widgets.
The syntax for interactive selections has subtly changed from our earlier research paper. Complete documentation is forthcoming but, in the interim, please consult these four comments that briefly describe the space of selection specifications currently supported.
Note: We plan to make another release very soon this week that will move all compiled files to build/
folder.