 "flush"
"flush"
    
    Updates the trend and redraws it.
Synopsis
setValue(string shape, "flush");
shape.flush();
Parameters
| Parameter | Description | 
|---|---|
| shape | Name of the object | 
Description
Since the majority of changes are not immediately visible in the trend, this attribute can be used to redraw a graphic.
                 Example
                Example
            
In this example, new values are added to a curve trend. Since this would not be immediately visible, the graphic is redrawn after the change using "flush".
main()
{
  shape bt=getShape("BarTrend1");
  dyn_float dx, dy;
  // New values
  dx=makeDynFloat(10, 20, 30, 40, 50);
  dy=makeDynFloat(40, 70, 50, 10, 30);
  // Set
  setValue(bt, "data", dx, dy);
  // Redraw
  bt.flush();
}Assignment
Bar trend
