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

Use Altair to encode data to the Vega Lite format #19

Closed
synw opened this issue Sep 3, 2017 · 2 comments
Closed

Use Altair to encode data to the Vega Lite format #19

synw opened this issue Sep 3, 2017 · 2 comments

Comments

@synw
Copy link
Owner

synw commented Sep 3, 2017

Instead of a custom encoder use Altair to encode the data to the Vega Lite format. It is very convenient, for example to set encoding. I started to implemented this in the vegalite branch.

This means depending on altair and pandas: it sounds like the cleanest way to serialize the data. Anyway we would had to depend on pandas one day or the other, considering how good and widely used it is for the kind of tasks we are doing.

The declarative approach is really nice and we can still use other js libs to render the charts, isolating the boring imperative stuff in individual units for different rendering engines

@synw
Copy link
Owner Author

synw commented Sep 4, 2017

I updated the Vega Lite branch with two examples: one draws timeseries from a query (see this method) and the other draws a chart from a set of count queries, all using the auth.User model

@synw
Copy link
Owner Author

synw commented Sep 6, 2017

Done with merging the vegalite branch

@synw synw closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant