Building on the Quick Start example, you can move the data from the script to the markup, to provide data in line.
Script |
Copy Code |
---|---|
<script id="scriptInit" type="text/javascript"> require(["wijmo.wijsparkline"], function () { $(document).ready(function () { $("#wijsparkline").wijsparkline({ type: "area" }); }); }); </script> |
Markup |
Copy Code |
---|---|
<div id="wijsparkline" style="height:50px;width:200px"> 33, 11, 15, 26, 16, 27, 37, -13, 8, -8, -3, 17, 0, 22, -13, -29, 19, 8 <div/> |