在NVD3中,您可以在http://nvd3.org/ghpages/stackedArea.html上找到诸如图表之类的图表。
打开时的默认 View 为“堆叠”。是否可以将默认 View 设置为“展开”?
最佳答案
如果您使用的是latest version of NVD3,请尝试使用chart.style('expand');
将展开的设置为默认 View 。
以下是可用选项的完整列表-'堆栈','流','流中心','展开','stack_percent'
Source for the list.我目前仅测试了“expand”,所以我希望其余的也能正常工作:)
希望能帮助到你。
关于d3.js - NVD3设置为默认展开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21039390/