XY chart coordinates

This project is still in the planning stage. I am trying to understand what is the best way to do this. If I have a plot area, sort of like in the picture. And then add the jQuery UI draggable / droppable function to drag objects around the diagram, how can I record the position of each object relative to each other? The immediate answer is to get the coordinate points, but the screen sizes can be different.

  • Is it possible to do this somehow as a percentage?

  • If I save these results, how do I display the list of items in the highest least order?

enter image description here

+3
source share
1 answer

, ( ) , , , , . ( ) .

, , , ; JavaScript.

; , X- , . , , .

" ?" , " ". "" Y, y (, , x ). "" , :

d = sqrt(x*x + y*y)

. , , x*x + y*y ( ) (abs(x) + abs(y)).

, , . , Y X ? , ? , , , , :

  • (x, y) , X , .
  • (, (x, y)) , .

:

  • , .
  • .

, .

+3

All Articles