PtTrend Examples?

Does anyone know of any PtTrend examples?

Thanks,
Tom

Try this:

void SetTrend(PtWidget_t* widget, const short trendpos[], size_t len)
{
PtSetResource(widget, Pt_ARG_TREND_DATA , trendpos, len);
}

Set up the “trend” with PhAb, and then do something like the
above to add a new value for each graph. “len” must equal
the number of “trends” configured for the widget. Each
time you do this, the “trend” shifts and the new data point
is added.

Don’t put your trend in an OScontainer.

John Nagle
Team Overbot

Tom wrote:

Does anyone know of any PtTrend examples?

Thanks,
Tom