-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Choropleth keep d3.geoAlbers the default projection but deprecate it #1379
Comments
In the future, we just default |
Good idea! |
Going after this one next :) From https://github.com/d3/d3/blob/master/CHANGES.md
Also going through https://bl.ocks.org/mbostock/5557726 It seems that |
Great! Yes let's plan for null being the default in the future. If people want it now they can set it explicitly. But undefined for now means "no value set", which we'll default to Albers. |
fixed by #1382 |
In the future we want geoChoroplethChart to default to the null (identity) projection since it is built on
d3.geoPath
which so defaults.However we have the opportunity to get there in a backward-compatible way, with a deprecation warning.
Here's one way to get there:
_projection
, which defaults to undefineddoRender
anddoRedraw
(maybe in a helper function)geoChoroplethChart.projection
becomes a regular getter/setter of_projection
(note getter is currently broken)The text was updated successfully, but these errors were encountered: