我想使用该包向折线图添加填充react-chartjs-2。我正在传递fill: true数据集,但它没有按预期工作。有什么建议么?
const data = {
labels,
datasets: [
{
label: "Balance",
data: history.balances.map((item) => item.balance),
fill: true,
borderColor: "rgba(190, 56, 242, 1)",
backgroundColor: "rgba(190, 56, 242, 1)",
tension: 0.3,
},
],
};
Run Code Online (Sandbox Code Playgroud)