Help on customizing projection
to display correct Map Dimensions.
#238
Unanswered
AlbertoVargasMoreno
asked this question in
Q&A
Replies: 1 comment 1 reply
-
you can provide a custom projection function instead of a standard one. That would allow you to build any complex one. However, I don't have enough experience how to implement your target one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am working on adapting the US choropleth example https://codepen.io/sgratzl/pen/gOaBQep for a Mexico version. The map rendering works, but I am having trouble displaying it with the correct dimensions. I assume my current problem is due to
projection
settings.Current Situation
https://codepen.io/AlbertoVargasMoreno/pen/vYqjYrW
Steps Taken
Research: I reviewed the documentation for projection settings in ChartJS Chart Geo and also the d3.js documentation for conic projections to find a proper
projection
value, but none has worked as expected.Findings: In researching the appropriate projection for Mexico, with https://projectionwizard.org I found the following values:
Attempts: I tried adjusting the values for
projection
,projectionScale
, andprojectionOffset
imitating this CodePen example, but without success.Request for Help
Does anyone have ideas or suggestions on how to properly adjust the projection to display the map in the correct dimensions? There may be specific settings or additional adjustments that I might have missed.
Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions