Graph widget

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

  • Graph widget

    Hi,
    I saw YT graph sample provided on Segger site. We have little different requirement.
    In Sample provided, the new data keep on moving. In our case,the new data should erase previously drawn data. Please see the attached example image..
    how can i achieve it with or without graph widget ?
    Images
    • GraphSample.png

      160.9 kB, 426×421, viewed 916 times
  • Hello

    If you have source of emWin, rewrite your own following function:

    void GRAPH__AddValue(GRAPH_DATA_OBJ * pDataObj, void * pData, void * pValue, int Size)

    -OR another WAY-

    don not use YT data by emWin, manage your own YT-Data and using
    void GRAPH_SetUserDraw(GRAPH_Handle hObj, void (* pUserDraw)(WM_HWIN hObj, int Stage))

    callback to draw your own YT-Data .


    Best regards.

    The post was edited 2 times, last by chensie ().