I am facing a challenge in creating a line chart that includes two X axes with subgroupings for the year. For instance, if I have 4 quarters (Q3, Q4, Q1, Q2) and Q3, Q4 are part of the year 2014 while Q1, Q2 belong to the year 2015, I would like to represent this on the second X axis. I have included an example of what I am looking for in the imgur link provided below, as well as a somewhat similar example that uses months instead of quarters. Can anyone offer any advice or examples on how I can achieve this?
https://i.sstatic.net/1Hl6u.jpg
var xAxis1 = d3.svg.axis()
.scale(x)
//.ticks(d3.time.months)
.tickFormat(monthformat)
.tickSize(5,0)
.orient("bottom");
var xAxis2 = d3.svg.axis()
.scale(x)
.ticks(d3.time.years, 1)
.tickFormat(yearformat)
.tickSize(5,0)
.orient("bottom");