09/29/2011 10:41 AM
Adding data to a PtMTrend
I'm having some trouble adding data to a PtMTrend widget. I have multiple trends in the same widget and I am trying to
use PtMTrendAddData() so that the trends scroll across the screen. The structure of the code is like below:
// Fill data here
PtMTrendAddData(widget, 0, &data, data.size());
// Fill data for second trend here
PtMTrendAddData(widget, 1, &data, data.size());
It seems that when I add data to one trend the other gets zero added to it for the same length. I tried to add data for
all trends at the same time, but I could only add to one trend at a time.
Is it possible to use PtMTrendAddData() in this scenario or do I have to maintain my own buffer for each trend into
which I add the new data and change the entire data for each trend on an update using PtMTrendChangeData()?