Widgets > [No Target Defined] > Features > Chart Types |
You can represent the data using three types of wijsparklines: Line, Area and Column. By default the type is set to Line.
Complete the following steps:
<!--RequireJs--> <script type="text/javascript" src="http://cdn.wijmo.com/external/require.js"></script> <script type="text/javascript"> requirejs.config({ baseUrl: "http://cdn.wijmo.com/amd-js/3.20143.59", paths: { "jquery": "jquery-1.11.1.min", "jquery-ui": "jquery-ui-1.11.0.custom.min", "jquery.ui": "jquery-ui", "jquery.mousewheel": "jquery.mousewheel.min", "globalize": "globalize.min" } }); </script>
<script id="scriptInit" type="text/javascript">
require(["wijmo.wijsparkline"], function () {
$(document).ready(function () {
$("#wijsparkline").wijsparkline({
data: [33, 11, 15, 26, 16, 27, 37, -13, 8, -8, -3, 17, 0, 22, -13, -29, 19, 8],
type: "line"
});
});
});
</script>
<div id="wijsparkline" style="height:50px;width:200px" />
The wijsparkline will appear as shown in the image below: