-
Notifications
You must be signed in to change notification settings - Fork 0
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
latitude vs longitude 1:1 #199
base: main
Are you sure you want to change the base?
Conversation
Ensures longitude and latitude maintain a 1:1 ratio when window is resized
if(width!=undefined && height!=undefined) { | ||
const size = Math.min(width ,height); | ||
chartRef.current.setSize(size,size); | ||
}else { | ||
chartRef.current.setSize(width,height); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Faiirrlly certain this would only make the graph itself a square, but not concern itself with the scale of the axes. Taking a look into it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also still applies to all graphs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(width!=undefined && height!=undefined) { | ||
const size = Math.min(width ,height); | ||
chartRef.current.setSize(size,size); | ||
}else { | ||
chartRef.current.setSize(width,height); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensures longitude and latitude maintain a 1:1 ratio when window is resized