Multiple imports from CSV with parent/child skews the output
See original GitHub issueRepro:
Import the following draw.io CSV file, then import it again with new ID values (e.g., append a zero to each ID and parent ID value).
The result is that imports after the initial import cause the child items inside the container to all be skewed inside the container by the x,y value of the parent item.
## Shapes and their styles
# stylename: shapeType
# label: %name%
# ignore: id
# identity: id
# left: xposn
# top: yposn
# parent: rparent
# parentstyle: shape=rect;whiteSpace=wrap;html=1;horizontal=1;horizontalStack=0;resizeParent=1;fillColor=#F0F8FF;strokeColor=#666666;perimeter=rectanglePerimeter;container=1;recursiveResize=0;collapsible=0;
##*************
id,rparent,name,shapeType,xposn,yposn
a0,1,TopBox,rect,300,200
a1,a0,Name1,rect,50,80
a2,a0,Name2,rect,100,120
a3,a0,Name3,rect,150,80
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
CSV import Parent-child mapping | Jira
Whenever a CSV import is performed, we usually end up losing Parent-child relationships. Cause. This is due to improper mapping of the parent...
Read more >How do I link multiple new children simultaneously using ...
Hello, I am trying to import multiple new child work items to a parent that already exists using the import from csv tool....
Read more >Importing WooCommerce Variable Products from CSV
This article will help you understand how you can easily import and export variable products in a WooCommerce store easily using a CSV...
Read more >Example Code To Simplify Your Imports and Exports
The example works for CSV, Excel, and Google Merchant Center exports only. You must include _my_time when configuring the export. function filter_export_by_date ...
Read more >Product CSV Importer and Exporter - WooCommerce
Import, export, or update hundreds or thousands of products in your WooCommerce store with a single CSV. This tool supports most product types,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See also https://groups.google.com/g/drawio/c/pDGf3gv5X8w/m/TiNg-oMZBQAJ
Hi,
I found this issue while searching if there is a way to create a container shape in a csv import. I cannot find any reference to the “parent” configuration statements in the examples (found above)
I would be very interested in knowing how to use these statements, if they are supported (even if a bit buggy).
Is this something that one can experiment with?
Cheers, Christophe-Marie
By the way: thanks for the csv import! I wrote a small python library to export a python networkx graph in drawio and I will opensource it soon 🙂