Task is to draw visually appealing representation of family tree. Main task is to design algorithm that would automatically calculate positions of figures representing people from given data. Data definition for persons and relations can be changed as long as it definitely describes all given people and relations.
I made example picture of how it could look. This example is not perfect. It has multiple unsolved visual problems. It’s made so anyone can easy understand relations between persons in it.
Unsolved visual problems in example picture:
Position of lines representing relations between spouses and ex-spouses when there are some people blocking it.
Representation of children from ex-spouses.
Positions of lines and boxes representing relations of 2 marriages to 2 pairs of siblings from different families.
Crossing of lines if parents of spouses and siblings from same generation are defined.
Explanation of example drawing:
Blue figures are men.
Red figures are women.
Line between persons represents relation between those persons.
Dotted line between persons mean ex-marriage.
Example data is given in PHP arrays and sql tables. There are no difference between those two, it’s given in both formats just for convenience. Data should be self-explanatory, except for “spouse” column in “relations” table.
If person 1 has value 2 in “spouse” column and person 2 has value 1 in “spouse” columns, 1 and 2 are married.
If person 5 has value 1 in “spouse” column, but person 1 has different value in “spouse” column, those persons are ex-spouses.
21 freelancers are bidding on average €650 for this job
The project looks great and I would love to do it. We are an experienced team of Web developers. we will provide you complete Solution as per your need
I have implemented this requirement for 5 times in different requirements. one was there were two trees and apart from tree relationship there was one to one tree relationship. have framework ready for this.