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

Altair 2.2 losses format property of InlineData object #1091

Closed
iliatimofeev opened this issue Aug 14, 2018 · 2 comments · Fixed by #1092
Closed

Altair 2.2 losses format property of InlineData object #1091

iliatimofeev opened this issue Aug 14, 2018 · 2 comments · Fixed by #1092

Comments

@iliatimofeev
Copy link
Contributor

data = alt.InlineData(
    values={'a':[{'b': 0}, {'b': 1}, {'b': 2}]},
    format=alt.DataFormat(
            type='json',
            property='a',
    ))
chart = alt.Chart(
            data
       ).mark_tick(
       ).encode(
            x='b:N'
       )

chart

visualization 36

but

alt.data_transformers.enable(consolidate_datasets=False)
chart

visualization 37

@jakevdp
Copy link
Collaborator

jakevdp commented Aug 15, 2018

Thanks – looks like dataset consolidation ignores extra properties of the inline data. I think it should be a fairly straightforward fix.

@jakevdp
Copy link
Collaborator

jakevdp commented Aug 15, 2018

I pushed a 2.2.1 release a few minutes ago that includes the fix for this bug.

Thanks for the report!

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 a pull request may close this issue.

2 participants