This is an example of producing a single area chart rendered using d3.js with mean lines positioned dynamically on the y-axis, and the x-axis customized to show categorical ranges, with svg g used to append category labels at top.
https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
https://code.jquery.com/jquery-3.1.1.slim.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/4.6.0/d3.js