如何从 Highchart 组织中删除 Board 和 HR/CFO?

How to remove Board and HR/CFO from Highchart organization?

我想像这样用 Highchart 创建组织结构图https://www.highcharts.com/demo/organization-chart

如何从图表中删除 Board 和 HR/CFO?

谢谢,

此致,

埃卡

您需要修改 data 属性 并使 levelsnodes 适应这些变化。

data: [
  ['Shareholders', 'CEO'],
  ['CEO', 'CTO'],
  ['CEO', 'CPO'],
  ['CEO', 'CSO'],
  ['CEO', 'CMO'],
  ['CTO', 'Product'],
  ['CTO', 'Web'],
  ['CSO', 'Sales'],
  ['CMO', 'Market']
]

现场演示: https://jsfiddle.net/BlackLabel/Lou32f1d/

API参考:https://api.highcharts.com/highcharts/series.organization.data