D3.js replacing flot; color-coded graph