Create contour map

前端 未结 2 2028
心在旅途
心在旅途 2021-01-31 06:09

Given a set of (x, y, z) coordinates, how would I go about creating a contour map?

Would be nice to know how to implement in d3 but wouldn\'t mind trying to

2条回答
  •  臣服心动
    2021-01-31 06:33

    • Plotly.js is based on d3.js and provides contour plots. See for example

    https://plot.ly/javascript/contour-plots/

    Plotly.js: How to avoid overlapping contour lines?

    How to apply plotly.js to an existing svg group as target instead of applying it to a target

    element?

    • There is also a contour plugin for d3.js (which I did not use yet):

    https://github.com/d3/d3-plugins/blob/master/geom/contour/contour.js

    And an example: http://bl.ocks.org/mbostock/4241134

提交回复
热议问题