cancel
Showing results for 
Search instead for 
Did you mean: 

Shift Graph

NHo.1
Associate III

Hi ST,

I have a problem when draw graph. when i set size 400 and shift graph, its ok. But if set size 800, it has issue as image.

Code shift graph:

graphLine.setBuffer(graphBuffer, NUMBER_OF_POINTS);

//shift data

for (int i = 1; i < NUMBER_OF_POINTS; i++)

{

graphLine.addValue(graphBuffer[i-1].x, graphBuffer[i].y);

}

add new data

graphLine.addValue(Width_Single_Graph, demo);

4 REPLIES 4
NHo.1
Associate III

0693W000001qYs5QAE.png

Martin KJELDSEN
Chief III

What does "shift graph" mean?

It means: scrolling the graph to the left and then updating the pixels on the right.

if random number from 0-100, its OK. But value from 90-100, its not good.

Thanks

Maybe send me a sample project so i can see for myself

/Martin