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

Histogram legends are not filtering map #929

Closed
andy-esch opened this issue Aug 21, 2019 · 3 comments
Closed

Histogram legends are not filtering map #929

andy-esch opened this issue Aug 21, 2019 · 3 comments

Comments

@andy-esch
Copy link
Contributor

andy-esch commented Aug 21, 2019

When I create a map with a default histogram from a helper function, the histogram does not filter the map.

I get this error in the JS console:

Error: [Property with an incorrect type] in(): invalid first parameter 'input'
        expected type was 'category', actual type was 'number'

From making this map:

color_continuous_layer('capital_bikeshare_july_2019_pickup_dropoff_isochrone_augmented', 'pop_25_64_2011_2015_by_total_pop', widget=True)

I'm running this off of develop (3dc4e10).

@elenatorro
Copy link
Contributor

Is this still happening? I've just tested and it seems to work ok. Could you give me the link to the dataset?

Screenshot 2019-08-27 at 16 47 20

@andy-esch
Copy link
Contributor Author

Yeah, I'm getting it for a lot of different maps.

I'm using JupyterLab, which is not always compatible with everything that works so well in Jupyter notebooks classic

from cartoframes.auth import set_default_credentials
from cartoframes.viz import Map
from cartoframes.viz.helpers import size_continuous_layer

set_default_credentials('cartoframes', 'default_public')

Map([
    size_continuous_layer('bikeshare_july_agg', 'total_events', widget=True)
])

@elenatorro
Copy link
Contributor

ok, I see the error now, I'm gonna fix it ASAP. Good catch!!

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

2 participants