Remove dependency on D3! Todo: improve draw performance.