【发布时间】:2014-01-10 08:32:33
【问题描述】:
在 NVD3 中,您可以使用以下图表:http://nvd3.org/ghpages/stackedArea.html
打开时的默认视图是“堆叠”。是否可以将默认视图设置为“扩展”?
【问题讨论】:
在 NVD3 中,您可以使用以下图表:http://nvd3.org/ghpages/stackedArea.html
打开时的默认视图是“堆叠”。是否可以将默认视图设置为“扩展”?
【问题讨论】:
如果您使用latest version of NVD3,请尝试使用chart.style('expand'); 将扩展设置为默认视图。
这里是可用选项的完整列表 - 'stack'、'stream'、'stream-center'、'expand'、'stack_percent'
Source for the list. 我现在只测试了“扩展”,所以我希望其余的也能正常工作:)
希望对你有帮助。
【讨论】:
chart.style 和 chart.offset` 不是函数错误