SVG Draw
Invoke the line method of the jqxDraw. Author: http://jqwidgets.com
by jqwidgets
HTML
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxDraw' style="width:680px; height:300px;"></div>
JavaScript
$('#jqxDraw').jqxDraw({
renderEngine: 'HTML5'
});
var renderer = $('#jqxDraw').jqxDraw('getInstance');
// params: x1, y1, x2, y2, attributes
renderer.line(600, 100, 600, 200, {
stroke: 'blue',
'stroke-width': 6
});
renderer.refresh();