API Pain-points
See original GitHub issueAltair is about mapping the Vega-Lite grammar to a Python API. There are a few places where this mapping is not as user-friendly as it perhaps could be. A running list:
-
sort
options in encodings. Awkward becausealt.SortField
/alt.EncodingSortField
require anop
parameter even if one isn’t needed. Maybe a good candidate for a shorthand syntax? (see #884) -
transform_bin()
. Awkward because it doesn’t follow the pattern oftransform_calculate
, and the field is specified as a string. (See https://altair-viz.github.io/user_guide/transform.html?highlight=transform_window#bin-transforms) -
transform_window()
. Awkward because it requires a list of dicts, and those dicts include the keywordas
so the associated objects cannot be used (see e.g. https://altair-viz.github.io/gallery/percentage_of_total.html?highlight=transform_window; #850) see #957 for a fix - normalized histogram. So many transforms required… (see https://groups.google.com/forum/#!topic/altair-viz/NMynW-PUqZk)
-
chart.facet()
and dataset specification… (see end of Facet docs section https://altair-viz.github.io/user_guide/compound_charts.html#faceted-charts)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Your APIs should solve a pain point – not become one.
A business-led approach to APIs starts by identifying the end customer and the problem you are solving for them. Your API should be...
Read more >Are your APIs causing more pain points instead of solving ...
Mismanagement of APIs increases operational issues and delivers incremental results. Here are five API integration challenges and how to overcome them.
Read more >Pain Points In API Development? They're Everywhere
Pain points in API development come from lack of clarity in the organization's development loops 2.Development loops should be documented and studied -...
Read more >API World Conference reveals API developer pain points
Poor communications skills create another pain point for making the API useful to developers, said Musser. This is primarily caused by not ...
Read more >Deep dive into top web developer pain points
Keeping up with features and APIs that enable new use-cases is a smaller problem. Developers struggle more with features, APIs, and changes to ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have not been using the Altair API too long but +1 to
chart.facet()
. It is tough to keep composition options (layer, facet, repeat) straight. For dealing with the chart later after a facet or other composition you have to know when to reach into thespec
orlayer
object, where to putdata
, etc. I seem to get the “required field ‘data’ missing” frequently. There are also some other gotchas (can’t facet a facet, facet ordering does not seem possible, config values cannot be inside the facet spec but need to be at the top level).However, this is complexity inherent in Vega Lite that may be difficult/impossible to hide in Altair.
pull requests welcome 😄