In v3 const datastack = d3.layout.stack()(data);. In v5 I modified it to const datastack = d3.stack().keys([1,2,3,4])(data);. But the response I got is Nan.
確定! 回上一頁