javascript - dc js - Create Multiple Column Dimension -


I am trying to summarize the data table using dc.js and I Plugin for Dinatable paging and other options.

Normally we get the complete data shown in the statistics in the dc.js data table. But I am trying to summarize the data like pivot tables and it is displayed on the web and when the selection is done then the data table needs to be changed.

I did this by making the dimension and group and I passed that group with dynaTable . And it's working fine.

Suppose I have 5 columns of data. I can make a dimension on any of its columns. Example: I am creating a dimension on the first column and I am creating the group at the value of the previous column, it says that it is A-20, B-42, C-50, D-20 .

Example:

 A, AA, 20 A, AB, 10 A, AC, 30 A, AD, 80 B, BA, 30 B, BB, 40 B, BC , 50b, BD, 90C, CA, 70C, CB, 20C, CC, 10C, CD, 80D, DA, 30D, DB, 40D, DC, 60D, DD, 80 

Is it possible to create one dimension on many columns?

If it is so please help me.

Here's the bella:

If you provide JSFiddle or something similar I can provide you an example. But the answer is yes, you want to set one dimension depending on the number of columns you have. You should only have a delimiter that has not been used in any prices. Suppose you have columns A, B, and C and you are going to use the delimiter ',' Then you:

  var xfilter = crossfilter (data); Var multiforme = xfilter.dimension (function (d) {return d.a., '+ db', '+ dc;});  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -