Comments (6)
@dabeng Same issue for me!! Why are you closing the issue without responding with the right solution?
from orgchart.
Hi @ArslanMohal , the problem might be the width of the outer container in which you have placed the chart
<div id="Org-container"></div>
If you are still unable to solve this problem, kindly create a JsFiddle, I'll have a look.
from orgchart.
Could you provide a live example on jsFiddle, and then I'll try to find the bug.
from orgchart.
I am attaching my code. It runs on my machine properly .But problem is when i export my chart to image. its not capture the whole image,but the visible part in container
<div id="Org-container"></div>
var DataSourceHR = {
'name': 'Root',
'className': 'root-level',
'children': [{
'name': 'Operations',
'title': '20686470717.56',
'className': 'top-level',
'children': [{
'name': 'Computer Resources',
'title': '24792.08',
'className': 'bottom-level'
}, {
'name': 'Consulting Sales',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'Controllers Office',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'Facilities Resources',
'title': '731.48',
'className': 'bottom-level'
}, {
'name': 'Finance',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'HR and Administration Managment',
'title': '751890.23',
'className': 'bottom-level'
}, {
'name': 'Human Resources',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'International Sales',
'title': '2000',
'className': 'bottom-level'
}, {
'name': 'Leasing',
'title': '92',
'className': 'bottom-level'
}, {
'name': 'M1, Seattle Manufacturing Plant',
'title': '20433725346.66',
'className': 'bottom-level'
}, {
'name': 'M3, Dallas Manufacturing Plant 2',
'title': '251697380.07',
'className': 'bottom-level'
}, {
'name': 'New Orleans inv.org. M7',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'No Department',
'title': '24686.03',
'className': 'bottom-level'
}, {
'name': 'Phoenix inv.org. M6',
'title': '2990',
'className': 'bottom-level'
}, {
'name': 'Purchasing',
'title': '34303.5',
'className': 'bottom-level'
}, {
'name': 'Sales Central',
'title': '48410.7',
'className': 'bottom-level'
}, {
'name': 'Sales East',
'title': '23175',
'className': 'bottom-level'
}, {
'name': 'Sales Mid-Atlantic',
'title': '21065.65',
'className': 'bottom-level'
}, {
'name': 'Sales SouthEast',
'title': '19500',
'className': 'bottom-level'
}, {
'name': 'Sales West',
'title': '0',
'className': 'bottom-level'
}, {
'name': 'Service Contracts',
'title': '49555.83',
'className': 'bottom-level'
}, {
'name': 'Vision Operations Inventory',
'title': '44798.329999999994',
'className': 'bottom-level'
}]
}, {
'name': 'Project Mfg (Vision MRC)',
'title': '0',
'className': 'top-level',
'children': [{
'name': 'Sales East',
'title': '0',
'className': 'bottom-level'
}]
}, {
'name': 'Vision Construction',
'title': '13192.2',
'className': 'top-level',
'children': [{
'name': 'Texas Inventory',
'title': '13192.2',
'className': 'bottom-level'
}]
}]
};
$('#Org-container').orgchart({
'data': DataSourceHR,
'nodeContent': 'title',
'zoom': 'true',
'pan': 'true',
'exportButton': true,
'exportFilename': 'MyHR'
});
from orgchart.
in html div with id "Org-container"
from orgchart.
Hi ArslanMohal, I used your code to generate the following picture in Chrome and Firefox:
I didn't see anything wrong with it.
from orgchart.
Related Issues (20)
- title and content in <ul> <li> HOT 1
- in content display html content HOT 1
- How to use a node only once? HOT 3
- Wrong line drawing when using text-center: left; HOT 1
- 如何通过参数设置隐藏兄弟节点 HOT 1
- 请问大佬data-prop-compact.html这个demo是不是有异常 HOT 3
- not able export chart in png roper
- ajaxURL HOT 2
- Sort siblings HOT 1
- orgchart with nodes of different widths don't work HOT 1
- drag & drop the nodes of orgchart don't work
- multiple-layers chart don't work HOT 1
- specific children of a certain branch of the chart to be displayed as vertical. the possibility to set VerticalLevel by data don't work. HOT 1
- I want to using 'compact' and 'verticalLevel' option together.
- Option to see that nodes have relations (parent/son/sibling) although they may not be visible without hovering over nodes individually HOT 2
- If you call oc.init(...) multiple times, some values are not reset resulting in unexpected behavior.
- Combining collapsed and hybrid modes
- options.compact() does not prevail over data.compact (as documented)
- Copying and pasting a CDN link directly can result in errors.
- 为增加兄弟节点函数增加指定增加到右边的参数选项
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orgchart.