Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An Idea for Integration with Diagrams #7

Open
CMCDragonkai opened this issue Oct 26, 2018 · 1 comment
Open

An Idea for Integration with Diagrams #7

CMCDragonkai opened this issue Oct 26, 2018 · 1 comment

Comments

@CMCDragonkai
Copy link

It seems Vega and Vega-Lite could act as an Intermediate Representation for describing charts.

Thus it makes sense to create a "vega-frontend" using Haskell's algebraic capabilities which can be compiled to a vega specification in JSON. Then a "vega-backend" using Haskell Diagrams package to render those specifications in Haskell as well. Of course the official vega render is already suited to the web world. But Haskell diagrams would be useful in other ways.

@DougBurke
Copy link
Owner

Apologies for the long delay in replying.

So, at the moment hvega has you essentially build up the JSON specification as you go along (that is, the API can be thought of as a thin wrapper around Aeson). Are you thinking that a module could take the JSON and then map to Diagrams, or would you rather see the types used by hvega be an abstract representation, which then gets converted to JSON (using Vega specification) or some other backend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants