d3.js Radar Graph - filling in between lines

后端 未结 3 1146
余生分开走
余生分开走 2021-02-06 18:50

I\'m trying to create a fill in between two of these triangles, for example a red fill in between the red and green triangles. Does anybody know how to accomplish this? I have s

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-06 19:08

    You don’t need to implement a custom path for this; you can use a d3.svg.area.radial path generator. Here’s an example of a stacked radial area chart which you might use to plot cyclical data:

    • http://bl.ocks.org/3048740

    The implementation is fairly similar to a radar chart, except with a radar chart the scales will be different for each angular point.

提交回复
热议问题