graphPointAxisToPositionPercent static method

double graphPointAxisToPositionPercent(
  1. double coordinateValue
)

Zero is centre on each axis, so must translate to x/y.

Implementation

static double graphPointAxisToPositionPercent(double coordinateValue)
{
  // Formula: percent = 50 + (d/1 * 50)
  return 50.0 + (coordinateValue/1 * 50.0);
}