Show all possible values of a dimension by another dimension with crossfilter.js and dc.js -


let's consider dataset :

var dataset = [{day :"monday", elapsed_time:120, person:"x"},                {day :"monday", elapsed_time:140, person:"y"},                {day :"tueday", elapsed_time:160, person:"x"},                {day :"tueday", elapsed_time:168, person:"y"},                {day :"wednesday", elapsed_time:140, person:"x"},                {day :"wednesday", elapsed_time:160, person:"y"},                {day :"thurday", elapsed_time:50, person:"x"},                 {day :"thurday", elapsed_time:60, person:"y"},                {day :"friday", elapsed_time:80, person:"x"},                 {day :"friday", elapsed_time:170, person:"y"}]; 

with crossfilter , dc.js want create barchart, show elapsed_times days, ie : in x-axis, monday friday , in each day show 2 values without sum ( don't want reducesum )

thank in advance;


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -