NVD3 Set Expanded为默认值

时间:2014-01-10 08:32:33

标签: d3.js nvd3.js

在NVD3中,您可以使用以下图表:http://nvd3.org/ghpages/stackedArea.html

打开时的默认视图是“Stacked”。是否可以将默认视图设置为“Expanded”?

1 个答案:

答案 0 :(得分:9)

如果您使用latest version of NVD3尝试使用chart.style('expand');设置扩展作为默认视图。

以下是可用选项的完整列表 - 'stack','stream','stream-center','expand','stack_percent'

Source for the list. 我现在只测试了'expand',所以我希望其余的也可以正常工作:)

希望它有所帮助。

相关问题