You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. Thank you for this great project, it has been extremely useful so far.
I have built a Choropleth map of England and Wales. I am wanting to show a small section of the map within a modal after clicking an area. This part is working; however, I am unable to center the map within the SVG. Depending on the area, most of the time it falls outside the SVG. As the map shown is different each time, I can't hardcode values like I have done with the main map. I have seen some examples of how to do this within d3 but, I am not sure how that would translate to visx.
Please see an example in the Sandbox below, any help would be appreciated.
This discussion was converted from issue #1315 on January 03, 2022 22:15.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. Thank you for this great project, it has been extremely useful so far.
I have built a Choropleth map of England and Wales. I am wanting to show a small section of the map within a modal after clicking an area. This part is working; however, I am unable to center the map within the SVG. Depending on the area, most of the time it falls outside the SVG. As the map shown is different each time, I can't hardcode values like I have done with the main map. I have seen some examples of how to do this within d3 but, I am not sure how that would translate to visx.
Please see an example in the Sandbox below, any help would be appreciated.
Sandbox Link
Beta Was this translation helpful? Give feedback.
All reactions