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)