Skip to content

Commit

Permalink
Merge pull request #923 from jakevdp/vl-2.5
Browse files Browse the repository at this point in the history
WIP: update Vega-Lite to version 2.5
  • Loading branch information
jakevdp authored Jun 12, 2018
2 parents 040b570 + c62b5b2 commit 1e62dc0
Show file tree
Hide file tree
Showing 9 changed files with 1,287 additions and 649 deletions.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## Version 2.2.0 (Unreleased):

### Maintenance

- update to Vega-Lite 2.5.2; see vega-lite change-logs [2.5.0](https://github.com/vega/vega-lite/releases/tag/v2.5.0) [2.5.1](https://github.com/vega/vega-lite/releases/tag/v2.5.1) [2.5.2](https://github.com/vega/vega-lite/releases/tag/v2.5.2)

### Backward-incompatible changes

- ``alt.SortField`` renamed to ``alt.EncodingSortField`` and ``alt.WindowSortField`` renamed to ``alt.SortField`` (https://github.com/vega/vega-lite/pull/3741)

## Version 2.1.0 (Released June 6, 2018):

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion altair/vegalite/v2/examples/beckers_barley_trellis_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
alt.X('median(yield)', scale=alt.Scale(zero=False)),
alt.Y(
'variety',
sort=alt.SortField(field='yield', op='median', order='descending'),
sort=alt.EncodingSortField(field='yield', op='median', order='descending'),
scale=alt.Scale(rangeStep=20)
),
color='year:N',
Expand Down
4 changes: 2 additions & 2 deletions altair/vegalite/v2/schema/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# flake8: noqa
from .core import *
from .channels import *
SCHEMA_VERSION = 'v2.4.3'
SCHEMA_URL = 'https://vega.github.io/schema/vega-lite/v2.4.3.json'
SCHEMA_VERSION = 'v2.5.2'
SCHEMA_URL = 'https://vega.github.io/schema/vega-lite/v2.5.2.json'
280 changes: 162 additions & 118 deletions altair/vegalite/v2/schema/channels.py

Large diffs are not rendered by default.

976 changes: 629 additions & 347 deletions altair/vegalite/v2/schema/core.py

Large diffs are not rendered by default.

84 changes: 60 additions & 24 deletions altair/vegalite/v2/schema/mixins.py

Large diffs are not rendered by default.

568 changes: 413 additions & 155 deletions altair/vegalite/v2/schema/vega-lite-schema.json

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion doc/user_guide/transform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ expressions and objects:

1. A `Vega expression`_ expressed as a string or built using the :mod:`~expr` module
2. A Field predicate, such as :class:`~FieldOneOfPredicate`,
:class:`~FieldRangePredicate`, or :class:`~FieldEqualPredicate`
:class:`~FieldRangePredicate`, :class:`~FieldEqualPredicate`,
:class:`~FieldLTPredicate`, :class:`~FieldGTPredicate`,
:class:`~FieldLTEPredicate`, :class:`~FieldGTEPredicate`,
3. A Selection predicate or object created by :func:`selection`
4. A Logical operand that combines any of the above

Expand Down Expand Up @@ -295,6 +297,14 @@ are:
specified values.
- :class:`~FieldRangePredicate` evaluates whether a continuous field is within
a range of values.
- :class:`~FieldLTPredicate` evaluates whether a continuous field is less
than a given value
- :class:`~FieldGTPredicate` evaluates whether a continuous field is greater
than a given value
- :class:`~FieldLTEPredicate` evaluates whether a continuous field is less
than or equal to a given value
- :class:`~FieldGTEPredicate` evaluates whether a continuous field is greater
than or equal to a given value

Here is an examaple of a :class:`~FieldEqualPredicate` used to select just the
values from year 2000 as in the above chart:
Expand Down
2 changes: 1 addition & 1 deletion tools/generate_schema_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def schema_class(*args, **kwargs):
},
'vega-lite': {
'v1': 'v1.3.1',
'v2': 'v2.4.3'
'v2': 'v2.5.2'
}
}

Expand Down

0 comments on commit 1e62dc0

Please sign in to comment.