added 2d coordinate calculation and WIP: labels for graph