Refactored min.'s for d3-chart demo