From aa9c9348ebf5437e677d7bd6c8b96e675e1218a6 Mon Sep 17 00:00:00 2001 From: "Weng, Chia-Ling" <75072960+ChiaLingWeng@users.noreply.github.com> Date: Sun, 17 Mar 2024 02:07:26 +0800 Subject: [PATCH] [Doc] Indicate that CompositeMarkDef can be used in addition to MarkDef (#3266) * [Doc] Update mark hint about CompositeMarkDef * fix language * Update docsstring and standardize formatting * Revert back to single backtick for consistency --------- Co-authored-by: Joel Ostblom --- altair/vegalite/v5/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index fddea8a14..4202fd9a8 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -2830,9 +2830,10 @@ class Chart( data : Data An object describing the data source mark : AnyMark - A string describing the mark type (one of `"bar"`, `"circle"`, `"square"`, `"tick"`, - `"line"`, * `"area"`, `"point"`, `"rule"`, `"geoshape"`, and `"text"`) or a - MarkDef object. + A `MarkDef` or `CompositeMarkDef` object, or a string describing the mark type + (one of `"arc"`, `"area"`, `"bar"`, `"circle"`, `"geoshape"`, `"image"`, + `"line"`, `"point"`, `"rule"`, `"rect"`, `"square"`, `"text"`, `"tick"`, + `"trail"`, `"boxplot"`, `"errorband"`, and `"errorbar"`). encoding : FacetedEncoding A key-value mapping between encoding channels and definition of fields. autosize : anyOf(AutosizeType, AutoSizeParams)