javascript - Multiple domains for scale in D3 -


i want create type of label using d3.js:

70008       b       c  70009       b       c 

is possible?

currently create y axis this:

y = d3.scale.ordinal().domain(tasktypes).rangeroundbands([0, setsvgheight() - margin.top - margin.bottom], .1);  yaxis = d3.svg.axis().scale(y).orient("left").ticksize(0); 

here data array:

{startdate : new date( '2015-01-15t15:05:39.000' ),enddate : new date( '2015-01-15t15:07:23.000' ),tasktypes: '72000',type : 'downtimes',dto_color : '#0000ff',}, {startdate : new date( '2015-01-15t15:05:39.000' ),enddate : new date( '2015-01-15t15:07:23.000' ),tasktypes: '72000',type : 'orders',dto_color : '#f2f2f2',}, {startdate : new date( '2015-01-15t15:05:39.000' ),enddate : new date( '2015-01-15t15:07:23.000' ),tasktypes: '72000',type : 'teams',dto_color : '#aaaaaa',}, {startdate : new date( '2015-01-15t15:07:23.000' ),enddate : new date( '2015-01-15t15:08:15.000' ),tasktypes: '70100',type : 'downtimes',dto_color : '#ff0000',}, {startdate : new date( '2015-01-15t15:07:23.000' ),enddate : new date( '2015-01-15t15:08:15.000' ),tasktypes: '70100',type : 'orders',dto_color : '#f2f2f2',}, {startdate : new date( '2015-01-15t15:07:23.000' ),enddate : new date( '2015-01-15t15:08:15.000' ),tasktypes: '70100',type : 'teams',dto_color : '#aaaaaa',}, 

how can add additional domain y axis?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -