Comments (6)
This also an problem in that YAML will not allow names with spaces (I think)
I thought wrong: YAML does allow something like:
parents: [Antonio, Graciete]
children: [Antonio Miguel, Catarina]
The point about duplicated still stands, since this is common in large families. Probably unsolvable, but I will leave it here nonetheless.
from kingraph.
oh hey, sorry this took a while. spaces are fine. You can indeed use spaces in the person's ID.
families:
- parents: [John, Susan]
children: [John II]
people:
John:
name: John
fullname: John Marks
John II:
name: John
fullname: John Marks
how you choose your ID's is up to you; sometimes a middle name (or initial) would be necessary to disambiguate.
from kingraph.
Some hints on how to go about with duplicate names:
In the same family
In some Western cultures, the convention is to use roman numerals to denote later generations (eg, James Potter II
in the Harry Potter example).
Some cultures also like using Sr
and Jr
to designate the first and second generations, respectively (eg, Jimmy Carter Jr.), with III
and so forth for subsequent generations.
In different families
The problem now is when one name appears across 2 different families with the same last name. You can use an initial of their maiden names (eg, James K Potter
and James R Potter
) to disambiguate.
from kingraph.
@adomingues, I'd love to know more about your experience with Kingraph! Were you able to come up with a useful family tree? What other tools have you tried?
from kingraph.
HI @rstacruz,
my turn to apologize for the late reply - Easter happened :)
Empty spaces
Cheers. I ended up doing what I should have done before writing the issue and tested it. As you say, it worked without problems.
In different families
The problem now is when one name appears across 2 different families with the same last name. You can use an initial of their maiden names (eg, James K Potter and James R Potter) to disambiguate.
Yep, that is the issue that I have: very large family on both my parents side's and thus some names are repeated. I ended up using the last name to disambiguate and it works fine.
from kingraph.
I'd love to know more about your experience with Kingraph! Were you able to come up with a useful family tree? What other tools have you tried?
@rstacruz the experience has been good. It was straightforward to install (Linux Ubuntu 16.4) and to create a simple tree. Creating a larger one required some trial and error mostly because the indentation needs to be keep accurate and, well, mistakes happened on my side.
My goal was to create a simple and visually attractive tree, and it should be a free tool, preferably using code so that I could fiddle with it if needed. I first saw what could be done with R/python because those are the languages I am more familiar with, but there was nothing that appealed:
- Very few tools available
- Some of the graphics in the documents were ugly
- The process to generate the trees was not very straightforward
So kingraph
came to the rescue. It fits almost all my requirements, and though being JavaScript
, the templates are YAML
which I am familiar with. It was also very easy for my sister to help me with little explanation, even though she never used YAML
- she knows JAVA
and c++
though.
As for the results, it is looking good at the moment. The tree only goes back to my grandparents, but includes all my 13 uncles and dozens of cousins and their families. It also has my wife's family, so it is pretty complex. Kudos for the output in svg
in case people want to customize it post-generation.
One feature I would suggest would be to have the possibility to have families in separate files, and then "source" them as needed. Say I would like to remove my wife's family it have to comment out or delete it. If it is nested with other families it might get messy. By sourcing into a master file it would be easier to mix and match the tree. I don't know JS so no idea how feasible or how much work it would require.
Nevertheless as it is, kingraph
does one job and does it well
Cheers.
from kingraph.
Related Issues (15)
- Changing label styles
- When using parents and parents2 - families interspersed
- Metadata attributes "born" and "died" are not rendered in the graph. HOT 3
- can we add image attribute? HOT 3
- Is Kingraph or a dependency responsible for the alignment for children ?
- Issue with large family HOT 4
- Running on clients-side (browser) HOT 1
- Project moved to https://github.com/AlexanderWillner/kingraph HOT 15
- [FEATURE] Add adoptions HOT 1
- Is it possible that `table` or `polygon` (if exported to SVG) get round corners similar to `border-radius`? HOT 1
- Issue with very large families HOT 6
- Style support appears to be spotty HOT 2
- Duplicate names HOT 1
- Sibling(children) order are jumbled because of subfamilies
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 kingraph.