5.0.0
While this is a 'major' release, this is largely to remove deprecated functions that relate to an older Vega-Lite interaction model and to longhand measurement type functions that have had shorthand equivalents for several years. The main addition is to support Vega-Lite's new offset channels for modifying position encoding.
V5.0 Breaking Changes
-
Removed deprecated functions and types:
Binding
and associated functionsiCheckbox
,iColor
,iDate
,iDateTimeLocal
,iMonth
,iNumber
,iRadio
,iRange
,iSelect
,iTel
,iText
,iTime
,iWeek
andseBind
.BindLegendProperty
and associated functionsblChannel
,blEvent
,blField
andseBindLegend
hDataCondition
,hSelectionCondition
,mDataCondition
,mSelectionCondition
,oDataCondition
andoSelectionCondition
pBand
seBindScales
,seEmpty
,seInit
,seInitInterval
,seMulti
andseSingle
select
,selection
andselectionName
.
These mostly relate to the old interaction model superseded in Vega-Lite 5 / elm-Vegalite 4 (see 'Deprecations' in change document for elm-Vegalite 4 for details on updating any legacy interaction functions that follow the old Vega-Lite interaction model).
-
New
Position
types to support Vega-Lite 5.2's new offset channel:XOffset
andYOffset
. While technically a breaking change as it extends thePosition
custom type variants, these additions are unlikely to break any existing code. -
Remove exposed
Measurement
type and associated functionspMType
,mMType
,tMType
,hMType
,dMType
,oMType
,fMType
andkMType
. Since elm-vegaLite V2, the preferred way to declare a measurement type has been through the more concise functionspQuant
,pGeo
,pTemporal
,mQuant
etc.
V5.0 Additions
-
Support for the new offset channel (VL 5.2) with
position XOffset
andposition YOffset
along with channel identifierschXOffset
andchYOffset
, useful for grouped bar charts and jitter-plots. -
widthStepOffset
andheightStepOffset
for specifying discrete step sizes (e.g. bars) for groups with a common offset. Only has an effect when specification uses a position offset channel (VL 5.2). -
pRepeatDatum
for use with position offsets and repeated encoding of multiple data fields (VL 5.2). -
leLabelExpr
for customising legend labels.
V5.0 Other Changes
- Added further examples to gallery and tests.