Example for highlighting Polygons#37
Open
suhanmappingideas wants to merge 16 commits intosjsrey:dashfrom
Open
Conversation
sjsrey
reviewed
Jul 25, 2018
Owner
sjsrey
left a comment
There was a problem hiding this comment.
This is a good first pr.
A couple of things to keep in mind when using git and github. The system will keep track of the differences and changes between files, so no need to have the names serve that purpose. So for example, Highlighted_Polygons2.py should be Highlighted_Polygons.py.
I embedded my newest version in your version resulting in this code. I'm proposing this file change.
Merging my current state with your current state
Updating last version and integrating space-travel in the densitites
Changes made (please, check if you agree with them, Su): - Remove the + 1 of the rank because it was starting in the second position in the space travel. - Added the highlighted dot to the timepath. - Chenged to 'Multiple States'scatter title when selecting multiple states in the map. - Inverted the positions of the message when doing the spacetravel (I think it makes more the sense the richest being the First (1th), do you agree?
Updating and making for changes
It is the same version of the meeting of 30th July, but I reversed the ranks in the subtitle of the choropleth. Now, the poorest is 1st.
I just added the clickData event for the scatterplot, but I realized that when you click on the scatterplot, the clickData for the choropleth won't work because of the if else statements, I have to figure out how to overcome this, because there's no way to clear theclickData. In addition, there is a tab for the rankpath, which I'm doing.
I fixed the border polygons by extracting the biggest polygon of the multipolygon object in python by creating the function 'return_biggest'.
This is a PR for you to see the rank paths would be possible using plotly. I have to clean the code a little bit and colors and the alignment are still missing to fix.
This is a version to deploy the current dashboard made in Dash with a simple layout. Su, I chose to supress the reactives of the scatterPlot (clickdata) and let only the ones with the choropleth, because since there's no way (at least, not simple way) to clear the clickData or select data, there's no way to keep the user changing to click on either choropleth or scatter plot freely, because the user will eventually not able to refresh using the other option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.