Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Forked from praveenn77/datalayer_matrix.v1.json
Last active October 31, 2018 13:15
Show Gist options
  • Save nsdevaraj/0b478b919975f373d36dac9f5e1152f6 to your computer and use it in GitHub Desktop.
Save nsdevaraj/0b478b919975f373d36dac9f5e1152f6 to your computer and use it in GitHub Desktop.
datalayer_matrix.v1.json
{
"metadata":[],
"datasource":{
"rows":[
{
"id":"region",
"value":"EAST",
"role": "category",
"ref":"easte",
"level":0,
"children":[
{
"id":"store",
"value":"S1",
"ref":"sd",
"role": "category",
"level":1,
"children":{
"isMeasures":true,
"value":["100","20","250","54"]
}
}
]
}
],
"columns":[{
"id":"product",
"role": "product", // grouped
"value":"LAPTOP",
"children":[
{
"isMeasure":true,
"id":"sales"
},
{
"isMeasure":true,
"id":"qnty"
}
]
},{
"id":"product",
"role": "product", // grouped
"value":"Mobile",
"children":[
{
"isMeasure":true,
"id":"sales"
},
{
"isMeasure":true,
"id":"qnty"
}
]
}]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment