Closed Josh-Ring-SD closed 1 year ago
the projection option not only allows to set one of the predefined subset but you can provide a d3 projection object directly:
so you can create your d3 projection manually and provide this object to the chart.js plugin
Aha, fantastic! Thanks @sgratzl
options.scales.Projection: "orthographic" - is it possible to rotate the world?
Currently I can see in the code and examples for
options.scales
these options:projectionScale
andprojectionOffset
When using
options.scales.Projection: "orthographic"
I was interested to show a view of Asia, which would require rotating the view or the world to that point.Europe
Asia: (quite distorted, ideally would want to rotate the orthographic projection)
This is a related question with D3: https://stackoverflow.com/questions/31693580/update-map-rotation-with-angles-with-orthographic-projection (since I can see projections are from D3 here: https://github.com/sgratzl/chartjs-chart-geo/blob/97665d4bc8f12c2e1fc1e3ca251b11914f03f1c4/src/scales/ProjectionScale.ts)
How might I approach this?