Coder Social home page Coder Social logo

trongthanh / family-tree-fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yakubovich/descendant_tree

1.0 4.0 1.0 1.56 MB

This repo is kept for history purpose. Please checkout the new repo (separate from fork)

Home Page: https://github.com/trongthanh/family-tree

License: MIT License

HTML 5.57% JavaScript 89.43% CSS 5.01%

family-tree-fork's Introduction

Trans Family Tree

  • Draws a family tree in a descendant chart format (all descendants of an individual).
  • NOW with separated spouse position
  • Click on a node to expand/collapse all descendants.
  • Drag around to navigate the tree
  • Mouse wheel Or Touch pad scroll to zoom

Live site: https://int3ractive.com/family-tree/

Getting Started

You have to run this from a server (can't just open the HTML file). The easiest way to do this, if you have python installed, is to run

# npm
$ npm start
# yarn
$ yarn start

this will start a live Node server at 0.0.0.0:8080 using npx and live-server

The Tree is stored in author-friendly YAML format. Here's a template:

---
name: Tran Van A
gender: male
bio: Some biography description
image: url to image
spouse: Nguyen Thi B
children:
  - name: Tran Van X
    gender: male
    spouse: Pham Thi N
  - name: Tran Thi Y
    gender: female

Colophon:

Limitations:

  • Since this chart is based on D3 Tree layout, we can only display chart with single Root ancestor

TODO:

  • Revise "spouse" display
  • Search box which will highlight results instantaneously
  • Bio overlay
  • Auto-generated bio info from statistics (number of sons, daughters, grandchildren, in-laws...)
  • Image attachment (in tree and bio)
  • Highlight connection path of 2 chosen persons
  • Calculate address (danh xưng) between 2 chosen person (cô - cháu, anh em họ, bà - cháu nội...)
  • Enhance the theme and style
  • Some quick highlight checkboxes:
    • Oldest sons
  • Use 'book.html' algorithm to render semantic HTML beneath

family-tree-fork's People

Contributors

mathijshoogland avatar trongthanh avatar tttt-conan avatar yakubovich avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

afandylamusu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.