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

idea: remove and distill data from/in charts #26

Closed
ijlyttle opened this issue Apr 22, 2018 · 2 comments
Closed

idea: remove and distill data from/in charts #26

ijlyttle opened this issue Apr 22, 2018 · 2 comments

Comments

@ijlyttle
Copy link
Collaborator

I think there is an opportunity to provide some helper functions. I think we could use some purrr magic to provide functions like:

  • remove_data(), which would go through a chart and, well, remove the data.
  • distill_data(), which would go through a compound chart, see if there are repeated data, and if so remove them in favor of a data at the "top" of the object.
@ijlyttle
Copy link
Collaborator Author

ijlyttle commented Apr 22, 2018

Just to note that @AliciaSchep rightly suggests add_data() to add data to the "top" of an object.

She also notes that distill_data() could be done automatically as a part of the vegalite() function, perhaps with an argument not to do it.

As a followup, I wonder if this might also be done automatically as a part of our concatenation functions (|, &, +). If someone wanted to suppress that, perhaps we could offer an option like altair.infix_concatenation.distill.

@ijlyttle
Copy link
Collaborator Author

ijlyttle commented Jul 8, 2018

This is being done in the Python Altair package (vega/altair#951); for which we are thankful.

@ijlyttle ijlyttle closed this as completed Jul 8, 2018
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

1 participant