【发布时间】:2021-02-03 17:55:42
【问题描述】:
我有一个高角的组织结构图,当图表中有很多节点时,框会变小并且它们的文本会被隐藏。如何使图表根据需要展开(并显示水平滚动条),以便所有内容都完全可见?
你可以看到一个例子here。
我的图表选项是这些
chartOptions: Highcharts.Options = {
chart: { inverted: true },
title: { text: null },
tooltip: {
useHTML: true,
padding: 10,
style: { fontStyle: 'normal' },
outside: true,
distance: 30
},
series: [
{
type: 'organization',
name: null,
keys: ['from', 'to'],
data: [],
nodes: [],
colorByPoint: false,
color: 'white',
borderColor: '#c1c1c1',
}
]
};
和html
<highcharts-chart
[Highcharts]="Highcharts"
[options]="chartOptions"
style="width: 100%; height: 100%; display: block;"
></highcharts-chart>
【问题讨论】:
标签: highcharts angular2-highcharts