Creating D3 map of ellipse envelope data

前端 未结 1 1685
南笙
南笙 2021-02-19 01:48

I have this dataset which has ellipses, more specifically ellipse \"envelopes.\" I was wondering if someone had advice on how I could draw these on a D3 map. I already have a ma

相关标签:
1条回答
  • 2021-02-19 02:04

    It seems that you are interpreting results almost right.

    One error which I fixed is that your code doesn't consider the azimuth.

    Another possible issue may be related to the axes. In the table provided they are named as "axis dimensions" which sound like an ellipse dimensions, while createEllipse function takes radiuses as params. Please, have a look at the zoomed in visualization with above mentioned issues fixed. Tooltip on hover is added for the reference.

    Third issue is arguable and depends on the data format established in the table. I mean that x doesn't always mean longitude and y - latitude. But logically it seems that ellipses longer values ("x" values are bigger or equal to "y" values) should correspond to horizontal direction.

    As a side note: precision of visualization is also affected by the usage of approximated Earth radius but that is minor.

    By "envelope" here is probably meant that ellipse circumscibe certain area of interest which lies inside, considering the fact that area values given are much smaller than the area of ellipse.

    0 讨论(0)
提交回复
热议问题