Comments (10)
Do you have any strict rule that may cause this situation? Like, the root node's expanded property must be true all the time.
This was my initial thought, but I checked that case and it was working well. Root node flag does not matter at all, it can't be collapsed, so it will be always visible
from org-chart.
Hello David, I can absolutely confirm that, it was my fault. When I was trying to rotate the tree to horizontal, I just broke the old position and enter/exit properties for nodes and paths. I have just realized and solved the problem. This is not a possible bug anymore :)
from org-chart.
That's great to hear, thank you for letting me know. I was kind of worried about it
from org-chart.
Hi @caginbektas , I tried fitting that data to the org chart, but it looks like they aren't exactly compatible and I got an error, can you reproduce the issue on sample jsfiddle and link it, so I can check what's happening?
from org-chart.
Hello,
Appreciated your jet-fast answer.
So sorry, forgot to mention that and upload the edited JS file. You can find it as attached.
(on the top, i am using the draw method to update the graph on the fly if needed.)
from org-chart.
Sorry, still can't reproduce
For me, it works as expected
You can edit this JSFiddle template, reproduce the issue, save and share a saved version with me, then I'll take a look
from org-chart.
Hello,
I have some operations using the click event of the expand circles. I might be broking it during the typescript part. I will check the code once again.
Do you have any strict rule that may cause this situation? Like, root node's expanded property must be true all the time..
Let's close this issue, i will need more investigate on that, because i disabled the typescript part, it was working without any problem.
from org-chart.
Hello,
I am still investigating, but it seems like, I am disturbing the data during my TypeScript operation. Actually, the basic requirement is, as you can see my video in the first post, I want to highlight to path which is being followed by user.
By way is every circle-button click, I am reading the current json, converting to ts object, get childs and parents of the clicked node, edit the border options in objects, convert it to json again, and call the entire js file with that new data.
Maybe you can recommend something for that? Otherwise it does not make sense to keep this issue as open because obviously error is not caused by your source code, it is in my typescript code.
from org-chart.
I am still investigating, but it seems like, I am disturbing the data during my TypeScript operation. Actually, the basic requirement is, as you can see my video in the first post, I want to highlight to path which is being followed by user.
Yes I saw that
By way is every circle-button click, I am reading the current json, converting to ts object, get childs and parents of the clicked node, edit the border options in objects, convert it to json again, and call the entire js file with that new data.
Maybe you can recommend something for that
I am not sure about the data processing step and how heavy it is, but on the org chart side, that's how it should be. Changed data redraws the graph, based on passed parameters. I could expose some function, which would take only data and would update the graph, but I chose to redraw whole chart, based on data - d3 is smart about it and only updates part, where data is changed, so no important performance hit here and it's more flexible
from org-chart.
Hello,
The reason is obviously coming from my backend customization. I am closing the issue, I will ping you back, if I will find anything related with your code (which I do not think so)
Thanks
from org-chart.
Related Issues (20)
- How to differentiate between two chart present on same page?
- Custom Link and/or link height HOT 8
- Error: multiple roots HOT 1
- Synchronizing OrgChart Layout between Main Screen and Preview Modal HOT 3
- SetCentered Method Stops Toggle Switch/Buttons Functionality, Highlighting Nodes With Varying Long Strings/Text, & Expand/Collapse Button Alignment With Long Strings/Text HOT 1
- Resize node when click an element inside HOT 2
- Mix compact and non-compact mode HOT 3
- Query Regarding Adjusting Node Height in org-chart Library HOT 1
- How To track Clicked Child on React App HOT 1
- Text on multi connection link is reversed when layout is set to Left HOT 3
- How to preserve the layout, positioning and zoom level of org chart HOT 3
- Can I have menu option having multiple items on right side of each node? HOT 2
- Is there a way to edit the position of a node in the chart? HOT 3
- How can I read which nodes are expanded? HOT 2
- The hidden time of the connecting line is incorrect HOT 5
- Download Org. chart has issue HOT 1
- Can the position of the root node not be centered? HOT 1
- Fit to screen not working in my example HOT 6
- Searched node doesn't come at center on the very first time. What is the significance of _centered? HOT 1
- Is there a way to add customisable right click menu on nodes? HOT 2
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 org-chart.