Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #13711, did not able to drillup with nodes.
- Loading branch information
1 parent
307a7bd
commit f693dbf
Showing
9 changed files
with
267 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
10 changes: 10 additions & 0 deletions
10
samples/highcharts/demo/organization-drilldown/demo.details
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Organization chart drilldown | ||
authors: | ||
- Torstein Hønsi | ||
js_wrap: b | ||
tags: | ||
- Highcharts demo | ||
categories: | ||
- More chart types | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script src="https://code.highcharts.com/highcharts.js"></script> | ||
<script src="https://code.highcharts.com/modules/drilldown.js"></script> | ||
<script src="https://code.highcharts.com/modules/sankey.js"></script> | ||
<script src="https://code.highcharts.com/modules/organization.js"></script> | ||
|
||
<div id="container"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
Highcharts.chart('container', { | ||
chart: { | ||
height: 300, | ||
width: 600, | ||
inverted: true, | ||
type: 'organization' | ||
}, | ||
title: { | ||
text: 'Highcharts Organization Chart' | ||
}, | ||
series: [{ | ||
name: 'Highsoft', | ||
data: [{ | ||
from: "CO", | ||
to: "DIV01" | ||
}, { | ||
from: 'CO', | ||
to: 'DIV02' | ||
}, { | ||
from: 'CO', | ||
to: 'DIV03' | ||
}, { | ||
from: 'CO', | ||
to: 'DIV04' | ||
}, { | ||
from: 'CO', | ||
to: 'DIV05' | ||
}, { | ||
from: 'CO', | ||
to: 'DIV06' | ||
}], | ||
nodes: [{ | ||
id: 'DIV01', | ||
title: 'Div Hd 1', | ||
name: 'Div. 1', | ||
drilldown: "DIV01" | ||
}, { | ||
id: 'DIV02', | ||
title: 'Div Hd 2', | ||
name: 'Div. 2', | ||
drilldown: 'DIV02' | ||
}, { | ||
id: 'DIV03', | ||
title: 'Div Hd 3', | ||
name: 'Div. 3', | ||
drilldown: 'DIV03' | ||
}, { | ||
id: 'DIV04', | ||
title: 'Div Hd 4', | ||
name: 'Div. 4', | ||
drilldown: 'DIV04' | ||
}, { | ||
id: 'DIV05', | ||
title: 'Div Hd 5', | ||
name: 'Div. 5', | ||
drilldown: 'DIV05' | ||
}, { | ||
id: 'DIV06', | ||
title: 'Div Hd 6', | ||
name: 'Div. 6', | ||
drilldown: 'DIV06' | ||
}] | ||
}], | ||
drilldown: { | ||
drillUpButton: { | ||
relativeTo: 'spacingBox', | ||
position: { | ||
y: 0 | ||
} | ||
}, | ||
activeDataLabelStyle: { | ||
color: 'contrast' | ||
}, | ||
series: [{ | ||
id: "DIV01", | ||
name: "DIV01", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV01', 'DEP01'] | ||
], | ||
nodes: [{ | ||
id: 'DEP01', | ||
title: 'Dept Hd 1', | ||
name: 'Dept. 1', | ||
layout: 'hanging' | ||
}] | ||
}, { | ||
id: "DIV02", | ||
name: "DIV02", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV02', 'DEP02'] | ||
], | ||
nodes: [{ | ||
id: 'DEP02', | ||
title: 'Dept Hd 2', | ||
name: 'Dept. 2', | ||
layout: 'hanging' | ||
}] | ||
}, { | ||
id: "DIV03", | ||
name: "DIV03", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV03', 'DEP03'] | ||
], | ||
nodes: [{ | ||
id: 'DEP03', | ||
title: 'Dept Hd 3', | ||
name: 'Dept. 3', | ||
layout: 'hanging' | ||
}] | ||
}, { | ||
id: "DIV04", | ||
name: "DIV04", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV04', 'DEP04'] | ||
], | ||
nodes: [{ | ||
id: 'DEP04', | ||
title: 'Dept Hd 4', | ||
name: 'Dept. 4', | ||
layout: 'hanging' | ||
}] | ||
}, { | ||
id: "DIV05", | ||
name: "DIV05", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV05', 'DEP05'] | ||
], | ||
nodes: [{ | ||
id: 'DEP05', | ||
title: 'Dept Hd 5', | ||
name: 'Dept. 5', | ||
layout: 'hanging' | ||
}] | ||
}, { | ||
id: "DIV06", | ||
name: "DIV06", | ||
keys: ['from', 'to'], | ||
data: [ | ||
['DIV06', 'DEP06'] | ||
], | ||
nodes: [{ | ||
id: 'DEP06', | ||
title: 'Dept Hd 6', | ||
name: 'Dept. 6', | ||
layout: 'hanging' | ||
}] | ||
}] | ||
}, | ||
tooltip: { | ||
outside: true | ||
}, | ||
exporting: { | ||
allowHTML: true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters