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

Chart Cell - infer types #15

Conversation

cristineguadelupe
Copy link
Contributor

Screen.Recording.2022-08-02.at.16.28.55.mov

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, just a couple comments 🐈

Copy link
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐱

@cristineguadelupe cristineguadelupe merged commit 02d9220 into livebook-dev:main Aug 2, 2022
@cristineguadelupe cristineguadelupe deleted the cg-chart-cell-infer-types branch August 2, 2022 22:58

defp type_of(data) when is_number(data), do: "quantitative"

defp type_of(data) when is_binary(data) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have number as strings too? Or is that generally a bad idea?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would work in Vega-Lite, but I think nominal is a better guess and the user can override if that's how they store numbers :)

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

Successfully merging this pull request may close these issues.

3 participants