0

我正在尝试在其中创建雷达图,Victory Native但我需要将雷达的边缘变圆。

提供的图表如下所示:

文本

虽然我需要让它看起来像这样:

文本

理想情况下,我会像这样添加 lineTension :

<VictoryGroup 
     colorScale={["gold", "orange", "tomato"]}
     style={{ data: { fillOpacity: 0.2, strokeWidth: 2, lineTension: 0.7 } }}
 >
    {this.state.data.map((data, i) => {
       return <VictoryArea key={i} data={data}/>;
    })}
</VictoryGroup>

但这无济于事。

非常感谢您的帮助!!

4

1 回答 1

1

您可以interpolation通过以下可用的极坐标图选项在 VictoryArea 组件上使用 prop:

“基础”、“基数”、“catmullRom”、“线性”

Victory 文档中的插值道具

<VictoryArea key={i} data={data} interpolation="cardinal" />
于 2020-10-28T19:02:29.390 回答