Need a special offer?Find out if your project fits.
+

How to define months or seasons order via API?

Answered
George Fong asked on January 4, 2016

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 Roman Petrusha Flexmonster January 4, 2016

Hi!

Please find working sample here: https://www.flexmonster.com/demos/js/loading-json-and-csv-file/
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