ui.igRadialGauge

ui.igRadialGauge_image

Make your data visualizations and dashboards more engaging with Radial Gauges that show off KPIs with rich style and interactivity. The round and semi-round gauges are powerful, easy to use, and highly configurable to present dashboards capable of displaying clocks, industrial panels, automotive dashboards, and even aircraft cockpits.

The following code snippet demonstrates how to initialize the igRadialGauge.

For details on how to reference the required scripts and themes for the igRadialGauge control read, Using JavaScript Resources in Ignite UI and Styling and Theming Ignite UI.

Code Sample

<!doctype html>
<html>
<head>
    <!-- Infragistics Combined CSS -->
    <link href="css/themes/infragistics/infragistics.theme.css" rel="stylesheet" type="text/css" />
    <link href="css/structure/infragistics.css" rel="stylesheet" type="text/css" />
    <!-- jQuery Core -->
    <script src="js/jquery.js" type="text/javascript"></script>
    <!-- jQuery UI -->
    <script src="js/jquery-ui.js" type="text/javascript"></script>
    <!-- Infragistics Combined Scripts -->
    <script src="js/infragistics.core.js" type="text/javascript"></script>
    <script src="js/infragistics.dv.js" type="text/javascript"></script>
</head>
<body>
    <div id="radialgauge"></div>
 
    <script>
        $(function () {
            $("#radialgauge").igRadialGauge({
                height: "500px",
                width: "500px",
                minimumValue: "0",
                maximumValue: "10",
                value: "10",
 
                //Scale Settings
                scaleStartAngle: "180",
                scaleEndAngle: "0",
                scaleBrush: "transparent",
                 
                //Backing Settings
                backingShape: "fitted",
                backingOutline: "rgba(22, 169, 231, 1)",
                backingBrush: "rgba(224, 224, 224, 1)",
                
                transitionDuration: "3000",
 
                //Needle Settings
                needleShape: "needle",
                needlePivotShape: "circleOverlay",
                needleEndExtent: "0.55",
                needlePointFeatureExtent: "0.3",
                needlePivotWidthRatio: "0.2",
 
                //TickMark Settings
                tickBrush: "rgba(160, 160, 160, 1)",
                minorTickBrush: "gray",
 
                //Label Settings
                labelExtent: "0.7"
                 
            });
 
            $("#radialgauge").igRadialGauge("option", "ranges", [{ name: "range1", remove: true }]);
            $("#radialgauge").igRadialGauge("option", "ranges", [{ name: "range2", remove: true }]);
            $("#radialgauge").igRadialGauge("option", "ranges", [{ name: "range3", remove: true }]);
 
            $("#radialgauge").igRadialGauge("option", "ranges", [{
                name: "range1",
                brush: "rgba(164, 189, 41, 1)",
                startValue: "0",
                endValue: "3",
                outerStartExtent: "0.6",
                outerEndExtent: "0.63"
            }, {
                name: "range2",
                brush: "rgba(253, 189, 72, 1)",
                startValue: "3",
                endValue: "7",
                outerStartExtent: "0.63",
                outerEndExtent: "0.66"
            }, {
                name: "range3",
                brush: "rgba(211, 64, 75, 1)",
                startValue: "7",
                endValue: "10",
                outerStartExtent: "0.66",
                outerEndExtent: "0.69"
            }]);
        });
    </script>
</body>
</html>

Related Samples

Related Topics

Dependencies

jquery.js
jquery-ui.js
infragistics.util.js
infragistics.util.jquery.js
infragistics.ext_core.js
infragistics.ext_collections.js
infragistics.ext_ui.js
infragistics.dv_core.js
infragistics.dv_geometry.js
infragistics.dv_jquerydom.js
infragistics.radialgauge.js
infragistics.ui.widget.js

Inherits

Copyright © 1996 - 2025 Infragistics, Inc. All rights reserved.