NVD3 Set默认扩展 [英] NVD3 Set Expanded as default

查看:110
本文介绍了NVD3 Set默认扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆