Skip to main content
NHo.1
Associate III
June 12, 2020
Question

Shift Graph

  • June 12, 2020
  • 4 replies
  • 1175 views

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);

This topic has been closed for replies.

4 replies

NHo.1
NHo.1Author
Associate III
June 12, 2020

0693W000001qYs5QAE.png

Martin KJELDSEN
Principal III
June 12, 2020

What does "shift graph" mean?

NHo.1
NHo.1Author
Associate III
June 12, 2020

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

Martin KJELDSEN
Principal III
June 18, 2020

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

/Martin