Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は nvd3.js を使用していますが、Json オブジェクトのカスタム パラメータを復元するのに苦労しています。
と を実行することで、xとyの値をすでに回復できます。multiBarChartd.xd.y
x
y
multiBarChart
d.x
d.y
しかし今、Json オブジェクトのパラメーターで渡すことができる色の値のようなカスタム パラメーターを回復しようとしていますが、失敗しました。
誰かがすでにこのようなことをしましたか?
複数のセットがある場合は、d[0].color を試してください。これでうまくいかない場合は、データのサンプルを提供できますか?