bqplot / bqscales

Grammar of Graphics Scales for bqplot
Apache License 2.0
6 stars 6 forks source link

GeoScale should not inherit from Scale #6

Open martinRenou opened 4 years ago

martinRenou commented 4 years ago

In d3, GeoProjections are not considered being scales. Maybe it should not inherit from the Scale, or it should share less logic with Scales in order to compile correctly (e.g. a GeoProjection does not have a range method).

SylvainCorlay commented 4 years ago

Indeed, although it was an intentional inheritance.

Basically, d3.js does not support N-D scale, (2-D mappings that cannot be separated into x and y scales), although d3 projections are essentially just that and when we made the bqplot maps, we used the same patterns with projections as we did with scales in other marks.