You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A published, versioned figure-interchange schema + a Vega-Lite mapping — interest in a documented interchange?
#9933
We've published cxspec, a versioned, self-describing figure format: one JSON object that carries a chart's data and the spec to render it, with a stated forward-render/compatibility policy, a structural round-trip, and an optional provenance hash. Schemas (JSON Schema 2020-12) and conformance fixtures are public: https://github.com/neuhausi/cxspec
To make this concrete rather than a proposal, we've shipped a dependency-free vega-lite -> cxfigure converter: https://github.com/neuhausi/cxspec/tree/main/converters/vega-lite — marks -> graphType, x/y -> axes, color/size/shape -> field mappings, with unsupported constructs reported rather than dropped.
We'd value this community's feedback on the parts of Vega-Lite that don't map cleanly, and on prior art for cross-tool figure exchange. Not proposing anyone change anything — just trying to make figures portable across tools.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
We've published cxspec, a versioned, self-describing figure format: one JSON object that carries a chart's data and the spec to render it, with a stated forward-render/compatibility policy, a structural round-trip, and an optional provenance hash. Schemas (JSON Schema 2020-12) and conformance fixtures are public: https://github.com/neuhausi/cxspec
To make this concrete rather than a proposal, we've shipped a dependency-free
vega-lite -> cxfigureconverter: https://github.com/neuhausi/cxspec/tree/main/converters/vega-lite — marks -> graphType, x/y -> axes, color/size/shape -> field mappings, with unsupported constructs reported rather than dropped.We'd value this community's feedback on the parts of Vega-Lite that don't map cleanly, and on prior art for cross-tool figure exchange. Not proposing anyone change anything — just trying to make figures portable across tools.
All reactions