SLSCoder
New member
- Joined
- Aug 24, 2021
- Messages
- 21
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

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
