NVD3 Set默认扩展 [英] NVD3 Set Expanded as default
问题描述
在NVD3中,您可以使用以下图表: http://nvd3.org/ghpages/ stackedArea.html
In NVD3 you can have charts such as the one at : http://nvd3.org/ghpages/stackedArea.html
打开它时的默认视图是Stacked。是否可以将默认视图设置为Expanded?
The default view when you open it up is 'Stacked'. Is it possible to have the default view set as 'Expanded'?
推荐答案
如果您使用最新版本的 NVD3 尝试使用 chart.style('
If you are using the latest version of NVD3 try using chart.style('expand');
to set Expanded as you default view.
以下是可用选项的完整列表:
Here is the full list of options available - 'stack', 'stream', 'stream-center', 'expand', 'stack_percent'
列表的来源。我现在只测试了'expand',所以我希望其余的也将工作,因为它应该:)
Source for the list. I have only tested 'expand' for now, so I am hoping the rest would also work as it should :)
希望它有帮助。
这篇关于NVD3 Set默认扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!