From c3c419f8fe6ef8c23632fb09c35afd9fe113f061 Mon Sep 17 00:00:00 2001 From: "Weng, Chia-Ling" Date: Fri, 6 Oct 2023 13:14:31 +0800 Subject: [PATCH] [Doc] Add integers to four digit year format example --- doc/user_guide/encodings/index.rst | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/doc/user_guide/encodings/index.rst b/doc/user_guide/encodings/index.rst index 5dad018dc..7535cf91e 100644 --- a/doc/user_guide/encodings/index.rst +++ b/doc/user_guide/encodings/index.rst @@ -534,18 +534,6 @@ While the above examples show sorting of axes by specifying ``sort`` in the Here the y-axis is sorted reverse-alphabetically, while the color legend is sorted in the specified order, beginning with ``'Morris'``. -Here is another example using :class:`EncodingSortField` class to sort color legend. -By specifying ``field``, ``op`` and ``order``, the legend can be sorted based on chosen data field. - -.. altair-plot:: - - alt.Chart(barley).mark_rect().encode( - alt.X('mean(yield):Q').sort('ascending'), - alt.Y('site:N').sort('x'), - color=alt.Color('site', - sort=alt.EncodingSortField(field='yield', op='mean', order='ascending')) - ) - Datum and Value ~~~~~~~~~~~~~~~