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
Legend in Graduated Circle Viz only works when both color_property and radius_property specified #150
Comments
@caerus-data Can you provide example code? Using the examples in examples/notebooks/legend-controls.ipynb, I was unable to recreate your issue. I'd like to help out -- I definitely hope to expand the customization on the map legends going forward :) Here's what I tried just now:
This yielded a map with only the variable radius legend, which seems like what you are looking for. I'm on the master branch (after the maintainer merged in #135 earlier today). Since #135 included some changes to CSS and JS in the project, maybe if you clear your browser cache you'll have better luck? |
|
Sorry for the multiple comments - as you can see, I've duplicated the selected code with a minor change for geojson, and no legend displays. I've deleted my browser (Chome, latest build) cache through the settings menu, but no effect. Thanks so much for a wonderful toolbox and so much help! |
@caerus-data No problem! Thanks for sharing the snippet above. Since it looks like we are running essentially the same thing with different results, can you confirm the latest commit you have checked out? I do work on a different OS so I want to rule everything else out before tackling dev-environment differences. |
Sure thing! I think this is what you're asking...
|
Sorry if this wasn't clear, I'm on Windows 10. |
What method did you use for installing the package? Did you clone the repository using git? And if so, have you updated the master branch after the recent PR was merged? I'm also starting to think this may be a bug in JavaScript. Can you access the JS console using the browser developer tools and let me know if there are any error messages there? Thanks! |
Working on JS now |
No Errors. I've been getting this warning within Jupyter though, which I've mentioned in other chains but not here. Sorry for not bringing it up sooner
|
My Anaconda is 2.7, but the environment is Python 3.6. I have this same problem in a 2.7 environment though. |
How about if you try |
Latest GitHub version resolved the issue! Thanks! |
I want to make a GraduatedCircleViz where the circles are sized by a column in a Pandas DataFrame. I don't have a secondary feature for which I'd like to vary the color.
If I only specify
radius_propery
, the visualization is correct, but the Legend is not shown (works fine when a secondary color feature is specified)The text was updated successfully, but these errors were encountered: