SummaryTableWriter - setTrend(String field, String interval)

Sets the time field used for the X axis or stacking field; can also set the time interval used to calculate the trend.

Table 1. Parameters
Name Type Description
field String Time field that is used for X axis values if grouping is not used. If grouping is used, then this is the stacking field.
interval String Time interval that is used to calculate the trend.
Table 2. Returns
Type Description
var opened = new SummaryTableWriter('incident', '');
opened.setTitle("Trend of Open Incidents");
opened.setTrend('opened_at', 'month');