From 11d3b0014a7b718045a140fc9f325816bcf0243f Mon Sep 17 00:00:00 2001 From: korr Date: Tue, 21 Aug 2018 16:37:08 -0500 Subject: [PATCH] Add what's supported --- _posts/2018-08-21-what-is-supported.md | 92 ++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 _posts/2018-08-21-what-is-supported.md diff --git a/_posts/2018-08-21-what-is-supported.md b/_posts/2018-08-21-what-is-supported.md new file mode 100644 index 0000000..8d6c2f3 --- /dev/null +++ b/_posts/2018-08-21-what-is-supported.md @@ -0,0 +1,92 @@ +--- +layout: post +title: "What's supported in mpl-altair" +date: 2018-08-21 4:15:00 -0500 +author: "Kimberly Orr" +categories: about +tags: "about" +excerpt_separator: +--- + +# What is supported in mpl-altair? + +**Supported Marks** +- mark_circle +- mark_point +- mark_square +- mark_line + + +**Supported Encodings** + +channel | supported marks +:--- | :--- +x | circle, point, square, line +y | circle, point, square, line +color | circle*, point*, square*, line +fill | point*, line +size | +stroke | line + +*Only quantitative and temporal data are supported for these encodings. + +**Supported Axis modifications** + +ex: +```python +alt.Chart(df).mark_point().encode( + alt.X('a:Q', axis=alt.Axis(format='.2g')) +) +``` + +attribute | support notes +:--- | :--- +domain | +format | Supported +grid | +labelAngle | supported? +labelBound | +labelFlush | +labelOverlap | +labelPadding | +labels | +maxExtent | +minExtent | +offset | +orient | +position | +tickCount | Supported +tickSize | +ticks | +title | +titleMaxLength | +titlePadding | +values | Supported +zindex | + +**Supported Scale modifications** + +ex: +```python +alt.Chart(df).mark_point().encode( + alt.X('a:Q', scale=alt.Scale(type='log')) +) +``` + +attribute | support notes +--- | --- +base | supported +clamp | +domain | supported +exponent | +interpolate | +nice | +padding | +paddingInner | +paddingOuter | +range | +rangeStep | +round | +scheme | +type | linear, log, time scales supported +zero | supported