Graph widget add value restart from begining after hitting the border

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Graph widget add value restart from begining after hitting the border

      Hello,
      I want graph widget (YT is preffered) to restart from (0,0) when the graph reaches its other side border.
      For example suppose a graph with 400 pixell on t axis. and the graph start from (0,0). After adding some points, it reaches (400,y_400). for next point, I want it to start from (0,y_401). How can I reach this requirement? Is it possible with YT data graph, or should I use XY graph?
    • Hi,

      the only way to do this with a YT graph is by clearing the data array when the limit has been reached. Then, newly added points will appear on the left side of the GRAPH again.

      You can clear the data object by calling GRAPH_DATA_YT_Clear().

      Best regards,
      Florian