v4.0.0
New Features (and Examples)
Interactivity
- selection support for bin extent (example: smooth histogram zooming)
Transforms
- regression and loess.
- pivot transform
Visual Encodings
- responsive width and height (Example) -- Thanks @donghaoren
- add gradient support for colors
- add image mark
- support for multiline text and subtitle (examples: Weekly Weather, Comparative Likert Scale Rating)
- support conditional axis + add examples (#5253)
- support per-corner radius for bar marks (example) -- Thanks @donghaoren
Syntax Improvement
Visual Encodings & Configs
-
make view
width
/height
support{step: number}
, replacing scalerangeStep
- BREAKING CHANGE: deprecate scale
rangeStep
- BREAKING CHANGE:
config.scale.rangeStep
replaced withconfig.view.step
- BREAKING CHANGE:
config.scale.textRangeStep
removed
- BREAKING CHANGE: deprecate scale
-
supporting channel name string for sorting by another encoding (e.g.,
sort: "x"
,sort: "-x"
) -
Move layout properties (
align
,bounds
,center
,spacing
,columns
) to encoding's facet field definition (#5150)- BREAKING CHANGE: * deprecate (
align
,center
,spacing
,columns
) from FacetedUnitSpec's schema
- BREAKING CHANGE: * deprecate (
- other BREAKING CHANGES in config:
-
replace
config.invalidValues
withmark.invalid
for mark definition and config (#5084) -
remove
config.stack
, which is unnecessary -
remove
config.scale.bar/rectBandPaddingOuter
, which are unnecessary
-
Style Change
-
Improve time unit formats - Thanks @haldenl
- BREAKING CHANGE: remove support for
shortTimeLabel
in axis/legend as we now use short format by default
- BREAKING CHANGE: remove support for
-
change default 1D bar size without scale to 18 (#5082)
-
Make axes appear below marks by default
-
Make geoshape with graticule data source unfilled (stroked) by default
More details: v3.4.0...v4.0.0