JavaScript Draw

Invoke the pieslice 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:200px;"></div>

JavaScript

$('#jqxDraw').jqxDraw({
      renderEngine: 'HTML5'
  });
  var renderer = $('#jqxDraw').jqxDraw('getInstance');

  // create a pie slice
  // params: cx, cy, innerRadius, outerRadius, fromAngle, endAngle, centerOffset, {optional attributes}
  var piesliceElement = renderer.pieslice(250, 150, 50, 100, 15, 95, 0, {
      fill: 'yellow'
  });
  renderer.refresh();