How can I determine where the circle is to be positioned?

In html x0, y0 is the top left corner of the graph. Sorry I didn't mention that.
In my world strange numbers are normal.
The graph height, width and label height are calculated based on user set width.
I calculated x wrong when I moved the circles to the left edge.
It didn't matter because I use left to position them and left was correct.
Also css (html styling commands) don't work right and they were (are) messing it up a bit.

Look at your graph and look at mine. They look the same except that my circles have an invisible border making them appear to be just shy of intersect.
The circle centers were just above the numbers (css foopa). They're closer now.
The numbers are closer to css 'vertical-align:middle' now (the browser is ignoring that)
The graph was 10 pixels higher than the scale. That's gone now.

This graph is using your formula.
I'm happy with it. Thanks again :)
GraphHeight: 660
ScaleCount: 21 -> (-10 to 10)
LabelHeight: 31.428 -> 660/21
YCenter: 330 -> 31.428 * 10.5 OR 660/2

Circles:
idx0 forklift cnt: 21 avg: 1 rad: 85 x: 300 y: 300.8
idx1 lift cnt: 11 avg: 4 rad: 45 x: 388.7 y: 205.8
idx2 steering cnt: 11 avg: 4 rad: 45 x: 211.3 y: 205.8
idx3 brakes cnt: 10 avg: -3 rad: 39 x: 300 y: 427.5
idx4 tilt cnt: 10 avg: 6 rad: 39 x: 40 y: 142.4
GndTotal: 62

1751367704079.png
 
Apologies for not returning yesterday. Real life intervened I'm afraid.
In html x0, y0 is the top left corner of the graph. Sorry I didn't mention that.
In my world strange numbers are normal.
That was a rather important fact that you left out don'tcha think? 🤷‍♂️
This graph is using your formula.
I'm happy with it. Thanks again :)
That's all that matters, I suppose, so I won't bother writing anything further about what I did on the last page.
(Anyone that's curious can always ask.)

Glad you're sorted. 😊

btw:-

I don't know how to set your response as 'correct answer'.
I don't think anyone knows how to do this. I've seen it mentioned elsewhere on the forum and have (unsuccessfully) searched for it myself but I suspect the facility simply doesn't exist; maybe it is a feature that the owner just never bothered to implement when setting up the forum. 🤔
 
Top