implement grid to convert input

convert absolute input into relative position for the graph using the
screen center as origin with normalized axis