Skip to content
Related Articles
Open in App
Not now

Related Articles

jQWidgets jqxDraw circle() Method

Improve Article
Save Article
  • Last Updated : 26 Jan, 2022
Improve Article
Save Article

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxDraw is a small jQuery-based plugin that is used to draw shapes and texts using VML, SVG and HTML5

The circle() method is used for creating a circle element for the specified jqxDraw widget.

Syntax:, cy, r, attributes);

Parameters: This method accepts four parameters that are illustrated below:

  • cx: This is the specified x-axis reference for the circle.
  • cy: This is the specified y-axis reference for the circle.
  • r: This is the specified radius for the circle
  • attributes: These are the specified attributes.

Return values: This method does not return any values.

Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdraw.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqx-all.js”></script>

Example: The below example illustrates the jQWidgets jqxDraw circle() Method.


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href=
          "jqwidgets/styles/jqx.base.css" type="text/css" />
    <script type="text/javascript" src=
    <script type="text/javascript" src=
    <script type="text/javascript" src=
    <script type="text/javascript" src=
        <h1 style="color:green;">
        <h3>jQWidgets jqxDraw circle() Method</h3>
        <div id="jqx_Draw" style="height:200px; width:280px;">
        <script type="text/javascript">
            $(document).ready(function () {
                    renderEngine: 'HTML5'
                var Instance = $('#jqx_Draw').jqxDraw('getInstance');
      , 100, 65, { fill: 'green' });


jQWidgets jqxDraw circle() Method


My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!