Building on the Quick Start example, you can change how the SparkLine draws onto the page using the duration, and easing attributes of the animation option. Alternatively, if you set the enabled attribute of the animation option to false, the SparkLine appears on the page like an image, all at once, with no animation.
Script |
Copy Code |
---|---|
<script id="scriptInit" type="text/javascript"> require(["wijmo.wijsparkline"], function () { $(document).ready(function () { $("#wijsparkline").wijsparkline({ animation: { duration: 4000, easing: "easeOutBounce" }, data: [33, 11, 15, 26, 16, 27, 37, -13, 8, -8, -3, 17, 0, 22, -13, -29, 19, 8], type: "column" }); }); }); </script> |