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

Whiskers on boxplot notworking on temporal data #1709

Closed
benjcabalona1029 opened this issue Sep 27, 2019 · 4 comments
Closed

Whiskers on boxplot notworking on temporal data #1709

benjcabalona1029 opened this issue Sep 27, 2019 · 4 comments
Labels
bug vega: vega-lite Requires upstream action in `vega-lite`

Comments

@benjcabalona1029
Copy link

I am trying to make a boxplot with temporal data. I used the timeUnit functionality to check for seasonality. I made the plot using the code below.

alt.Chart(data.reset_index()).mark_boxplot().encode(
    x=alt.X('DATE:T',timeUnit='month'),
    y='Sales')

Selection_008

The whiskers are working for regular quantitative data.

alt.Chart(data.reset_index()).mark_boxplot().encode(x='Sales:Q')

Selection_009

@jakevdp
Copy link
Collaborator

jakevdp commented Sep 27, 2019

Please include a full code snippet that reproduces the issue. When I run yours I get NameError: name 'data' is not defined

@mattijn
Copy link
Contributor

mattijn commented Sep 30, 2019

Probably related to this unresolved Vega-Lite issue upstream: vega/vega-lite#4925

@benjcabalona1029
Copy link
Author

Hi Jake,

from vega_datasets import data
import altair as alt
alt.data_transformers.enable('json')
temps = data.seattle_temps()

alt.Chart(temps).mark_boxplot().encode(
    x=alt.X('date:T',timeUnit='month'),
    y='temp')

But as mentioned above this might be a Vega Lite Issue.

@jakevdp jakevdp added bug vega: vega-lite Requires upstream action in `vega-lite` labels Nov 23, 2019
@joelostblom
Copy link
Contributor

The provided example is working for me on Altair 4.2.0 (with the data_server data transformer and by disabling max rows), so I'm closing this, please re-open if you are still seeing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug vega: vega-lite Requires upstream action in `vega-lite`
Projects
None yet
Development

No branches or pull requests

4 participants