BALKANGraph / FamilyTreeJS

Build family tree app with BALKAN FamilyTreeJS library. Family Tree also called a genealogy or a pedigree chart, is a chart representing family relationships in a conventional tree structure.
50 stars 16 forks source link

get family data as text json - not file #87

Closed zeraati closed 7 months ago

zeraati commented 7 months ago

It is possible to export the family data in the form of a Json file, which is downloaded after export But how can I have the family data in the form of Jason's text in the application without downloading the file I want to save this data with API on my server and load it automatically on load the page

ZornitsaPesheva commented 7 months ago

You can get the data this way: console.log(family.config.data)

zeraati commented 7 months ago
Screenshot_3

not working! get undefined

ZornitsaPesheva commented 7 months ago

Sorry, it is console.log(family.config.nodes)