Menu
Download Free Trial

How to define months or seasons order via API?

Answered

Hi,
I’m using javascript api to create my report,how can i define months or seasons order via API?

George

1 answer

Public
Roman Petrusha Flexmonster January 4, 2016

Hi!

Please find working sample here: http://www.flexmonster.com/demo-json/
Your JSON data should be like this
var jsonData = [
{
“Color”:{“type”: “string”},
“M”:{“type”: “month”, “dimensionUniqueName”: “Days”, “dimensionCaption”: “Days”, “caption”:”Month”},
“W”:{“type”: “weekday”, “dimensionUniqueName”: “Days”, “dimensionCaption”: “Days”, “caption”:”Week Day”},
“country”:{“type”:”level”, “hierarchy”: “Geography”, “level”:”Country”},
“state”:{“type”:”level”, “hierarchy”: “Geography”, “level”:”State”, “parent”: “Country”},
“city”:{“type”:”level”, “hierarchy”: “Geography”, “parent”: “State”},
“Price”:0,
“Quantity”:{“type”: “number”}
},
{
“Color”:”green”,
“M”:”September”,
“W”:”Wed”,
“country” : “Canada”,
“state” : “Ontario”,
“city” : “Toronto”,
“Price”:174,
“Quantity”:22
}
];

Does it help?

Please login or Register to Submit Answer