draw(isRedrawCanvas: Boolean);
isRedrawCanvas. Indicates whether sparkline area is redrawn. If the parameter is set to True, the sparkline area is redrawn, otherwise it is not.
The draw method draws sparkline.
Executing the example requires a sparkline named "sparkline" on the page (see Example of Creating the Sparkline Component). The example must be placed in the <script> tag. Add new data to the sparkline and draw it:
// Add data sparkline.beginUpdate(); sparkline.getValues().push(18, 19, 20); sparkline.endUpdate(); // Redraw sparkline sparkline.draw(True);
After executing the example new data is added to the sparkline:
See also: