in Education by
I have a problem that I suspected would be a lot simpler than it was. I'm trying to draw a graph under some specific guidelines. It's multiple columns and multiple rows, but not all columns have the same number of rows. I'd like the distance between nodes (on the vertical) to be the same for all nodes focused around the centre, to create a graph something like the following: o o o o o o o o (The middle column only has two nodes, but they are the same distance from each other as in the three node columns.) I could probably work this out by just calculating the distance based on the column with the most nodes, then working from the centre (-y for the nodes above the centre point +y for those below) but it doesn't seem like the most elegant solution. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Two approaches: From the center point, "draw" a circle and place the points at specific angles on it's border. Now move the center in the direction where you want to have and place points again. Overlaps can be removed. Draw the first set of points where where, e. g. the distance between x and y is equal. Then move right below with x/2 and y/2 (or similar) and draw the next elements. I hope these rather coarse suggestions are not to unclear ;)

Related questions

0 votes
    If only one 'Consumer Group' subscribed for a topic and there are lots of consumers in this Consumer Group, messages ... group. This is (1)Queuing model (2)Publish-Subscribe model...
asked Jun 17, 2021 in Technology by JackTerrance
0 votes
    Find out various Supreme Court cases that have focused on the rights and liberty of Indian citizens. Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Name two Indian reformers who focused on gender inequality. Please answer the above question....
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Name 4 areas that five-year plans focused on. Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    _____is the sub-field of AI that is focused on enabling computers to understand and process human languages. a) ... d) Data Sciences Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    Which among the following is more focused on securing networks? Network Security Anti-virus Endpoint Security Firewall...
asked Oct 25, 2020 in Technology by JackTerrance
0 votes
    ______________ helps you when you organize development projects by allowing to distribute project work for individual ... Requests. A. Transport Request B. Transport Organizer...
asked Feb 20, 2023 in Technology by JackTerrance
0 votes
    1. Optical disks are used to distribute bulk data true or false Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    Twelve balls are distribute among three boxes. The probability that the first box contains three balls is `(110)/9(2/3)^ ... /(3^(12))` Select the correct answer from above options...
asked Nov 13, 2021 in Education by JackTerrance
0 votes
    Who was the first individual to distribute computer worms through internet? (a) Vladimir Levin (b) Bill Landreth (c ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 5, 2021 in Education by JackTerrance
0 votes
0 votes
    I want to automatically show the soft-keyboard when an EditText is focused (if the device does not have a physical ... not present a soft-keyboard if there is a physical one....
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    Sending an E-mail is similar to- (A) writing a letter (B) drawing a picture (C) talking on the phone (D) ... package (E) None of these Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    Why do you think India is now considered as an important centre of power? Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
...