Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

How to define months or seasons order via API?

George Fong asked on January 4, 2016

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


1 answer

Roman Petrusha Roman Petrusha Flexmonster January 4, 2016


Please find working sample here:
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”},
“Quantity”:{“type”: “number”}
“country” : “Canada”,
“state” : “Ontario”,
“city” : “Toronto”,

Does it help?

Please login or Register to Submit Answer