FWIU Vega/voyager suggests similar charts with CompassQL: https://github.com/vega/voyager
From http://vega.github.io/ re: CompassQL:
> COMPASSQL is a visualization recommendation engine. Given user query, it suggests visualizations, ranked by both data properties and perceptual principles
Altair is one implementation of Vega-lite in Python; for rendering charts with JS.
mpld3 does matplotlib with d3.js: https://github.com/mpld3/mpld3
https://github.com/vega/voyager
I made a small clone just to understand the inner workings of it: https://ellx.io/matyunya/simple-voyager-clone/index.md
Here's my very basic attempt at ggplot-like API on top of Vega-Lite: https://ellx.io/matyunya/plot.
There's also Vega-Lite API for producing spec JSON with more typical chaining calls: https://vega.github.io/vega-lite-api/
Sadly, looking at the github repo it seems to be unmaintened, so I am glad to see Muze in that space.
[1] https://github.com/vega/voyager
It is an extensive grammar for visualization.