Add snap to grid for graph.

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>