Based on D3 drawing graphs