Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
How to use OlapUtilities
posted

Hi,

We're in a decision process for this product. I'm testing ignite ui by binding our own data.

During tests, I couln't make pivot grid date range in time intervals like hours, minutes. Here is the snippet I use:

$.ig.OlapUtilities.prototype.getDateHierarchy( "tweetTime", // the source property name 
["month", "date", "hour"], // the date parts for which levels will be generated (optional) 
"Dates", // The name for the hierarchy (optional) 
"Date", // The caption for the hierarchy (optional) 
["Month", "Day", "Hour"], // the captions for the levels (optional) 
"All Periods")

If I add "hour", "minute" strings it fails.

I spend more than 30 minutes and couldn't find in API. Lack of functions like $.ig.OlapUtilities.prototype.getDateHierarchy, $.ig.OlapUtilities.prototype.sumAggregator in documentation is really frustrating.