In d3 we can re-assign values of datasets for convert string to numbers, assign new names etc... A good practice could be to replace the names by d.vertical and d.horizontal to make it much more descriptive