D3js: When to use .datum() and .data()?

前端 未结 3 1909
清酒与你
清酒与你 2021-01-31 08:38

I often see .datum when an area chart is used. For example:

svg = d3.select(\"#viz\").append(\"svg\").datum(data)

Are there any

3条回答
  •  一生所求
    2021-01-31 09:29

    A very good tutorial with example is here. http://bost.ocks.org/mike/selection/#data

提交回复
热议问题