Coder Social home page Coder Social logo

Comments (11)

DavidMStraub avatar DavidMStraub commented on July 18, 2024 1

That fixed it! Will push directly

from gramps-web.

geostag avatar geostag commented on July 18, 2024 1

We are using graphviz, a common software library to render and layout arbitrary graphs. The algorythm tries to minimize the number of crossing edges. This is well accepted as helpful when displaying large directed graphs. But it definetly has the effect, that other sorting crierteria like date of birth are not taken into account.

Displaying persons which are part of more than one family multiple times is intended as discussed in #313 . It seems to be the best option in these cases.

from gramps-web.

geostag avatar geostag commented on July 18, 2024

Persons showing up more than once is intended, if they are part of more than one family and their partners or children are also part of the graph. This is the situation I tried to describe.

The JS syntax error obviously is not. Could you give some more details, e.g. the stacktrace from the browser console?

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

image

from gramps-web.

geostag avatar geostag commented on July 18, 2024

Seems to be a syntax error in the generated dot string. Could you do me a favour and add console.log(dot) before line 186 in RelationshipChart.js and show the line the error refers to - if this is possible? Currently I have no idea how a '-02' should make it to the generated dot depending on individual data.

I am assuming, that the handle from api data is a save alphanumeric string. If this not the case, I have to rework the code.

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

Here (trying out locally now) it says "line 2476 near '-02'", line 2476 would be the third line here - not sure if this is the right counting though...

      subgraph cluster_p_53ce42d5-02cd-4d82-bbfb-db3449fe038c {
        cluster=true
        color=white
        label="."
        node_p_53ce42d5-02cd-4d82-bbfb-db3449fe038cx53ce42d5-02cd-4d82-bbfb-db3449fe038c [
          class="person_53ce42d5-02cd-4d82-bbfb-db3449fe038c"
          margin=0.25
          shape="none"
          fixedsize=true
          width=2.878787878787879
          height=1.0636363636363635
          label=<->
        ]
      }

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

Actually it's the only subgraph with the string -02, so might be something in there.

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

I ran this on the command line with dot and got

Warning: syntax ambiguity - badly delimited number '-02c' in line 2475 of graph.dot splits into two tokens
Error: graph.dot: syntax error in line 2475 near '-02'

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

For some reason it seems handles with hyphens cause problems. And Gramps Web API uses UUIDv4s with hyphens 😬

I suspect quotation marks might be enough to fix it https://stackoverflow.com/questions/14958346/dot-dash-in-name

from gramps-web.

DavidMStraub avatar DavidMStraub commented on July 18, 2024

I'll try that out

from gramps-web.

andre1wall avatar andre1wall commented on July 18, 2024

I am experiencing some problems with the correct sorting of the main person's descendants.
maybe i'm the only one experiencing these errors as my family tree is quite large, but it would be good if the descendants were always sorted by year of birth and no distinction was made as to whether the people were married or not, as this should not affect the view.

wrong sorting descendants:
gramps-web-realationship-praph
sorting

a person who has been married twice is reported twice:
the same person was married twice1
the same person was married twice2

thank you for your hard work i really appreciate it.
this view was really missing.
please continue with your great work

from gramps-web.

Related Issues (20)

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.