Hi,
I'm using javascript api to create my report,how can i define months or seasons order via API?
George
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?