You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set legend's orient to right by default (similar to Vega)
Vega-lite now supports multiple legends
filter
move filter to data.filter and takes Vega expression as parameter instead of a complicated predicate object.
Null filter is added before binning and timeUnit conversion
scale
scale.reverse is removed as it is redundant with sort.
stack
add stack control to color and detail encoding
sort — now sort property can be either undefined, a String or an Object
undefined - the field is unsorted.
(as String) 'ascending' or 'descending' – the field is sort by the field's value in ascending or descending order.
(as Object — for ordinal/nominal fields only) A sort field object - for sorting the field by an aggregate calculation (sort.op) over a specified sort field (sort.field) in a specified order (sort.order)
Vega 2 Migration Refactor
ValueRef
replace d.data with datum in filter
add datum. option to fieldRef and use it in time transform and template
eliminate outdated fieldRef options
Replace the eliminated group mark properties with field.group
Refer to {group: 'mark.group.width’} with
Transforms
Aggregation, Bin
Stack
Use vega2 stack's parameter and rename it to <field_name>_start|end, remove the need to add facet transform before stacking
Make facet comes after stack for stacked area chart (This makes stacked area chart looks almost right but still looks weird due to #307 – see example screenshot)
Facet
use field name reference instead of using keys.0 (#639)