How to generate XBI y coordinate points dynamically

has the following JSON data format

{
    "nodes":[
        {
            "color":"-sharp4f19c7",
            "label":"jquery",
            "attributes":{

            },
            "y":-404.26147,
            "x":-739.36383,
            "id":"jquery",
            "size":4.7252817
        },
        {
            "color":"-sharpc71969",
            "label":"backbone",
            "attributes":{

            },
            "y":-862.7517,
            "x":-134.2215,
            "id":"backbone",
            "size":6.1554675
        }
    ],
    "edges":[
        {
            "sourceID":"jquery",
            "attributes":{

            },
            "targetID":"backbone",
            "size":1
        }
    ]
}

two attributes, x and y , have been observed. How to dynamically generate coordinate points according to the following conditions?

  1. Origin can be configured manually. Default is 0 point
  2. XQuery y needs to set a boundary value, and the generated coordinate points should be contained in a rectangular space (800400) px .
  3. each point has a radius r , and the resulting point cannot be covered because the radius of other points is too large
  4. there may be a relationship between the generated points. If point 1 is related to point 2 :
    take out the id jquery of point 1 and id backbone of point 2, and
    add it to edges (never mind, just to clarify the following sentence!):
    related points should lean together as much as possible when generating coordinates.

in fact, this data source is the same as here:
reference link:
Echart"s case of using this data

Oct.31,2021

x is the Abscissa.

xAxis:{
    data:[12]
}
series:[
    data:
]

this you may need to traverse the original data and deal with it separately, or the background may directly give you the data format that conforms to


Hello. I see that the dynamic acquisition of the x-ray coordinates of the echart diagram you mentioned, and related problems, are some of my current problems, have you solved them? Can you tell me? Can you reply to me when you see it? Or add me qq2900969126,. Thank you

.
Menu