N4 SVG Gauges

  • Choose from 7 different styles
  • Updates in Real-time
  • Change spectrum colours
  • Modify stroke, font, and other attributes
  • Works in Workbench and Browser mode
Add to Cart
n4 svg gauges


The SVG Gauges shows 7 different svg style gauges. Bind the gauge to a numeric and the value updates in real-time. Change spectrum bindings to different colours. Choose from 7 different styles. Before you start, copy the svgGauges-ux.jar file to your modules directory. Restart the station and Workbench.

Are you looking for a cost effective way to manage and visualize data for all your customers? Why not have a look at View Builder?


Before you start. Download the modules from our portal (see your order confirmation, which also explains licensing). Copy the modules file to your modules directory. Restart BOTH station and Workbench.

1. Copy the svgGauges-ux.jar file to your modules directory.
2. Open the module from your palette file.
3. Drag and drop the widget from the palette onto your px view.

Tridium charting library


bms totals chart properties


Bind to a numeric. Make sure facets are set on point. E.g. min/max/units.

Gauge Style:

Upto 7 different styles. gauge1, gauge2, gauge3, gauge4, gauge5, gauge6, gauge7
Adjust stroke width as required.

Height, Width:

Size of the transparent box on screen. Can be in pixels or percentage. E.g. 1px or 1%.

Background Color:

Can be transparent or a color choosen from the color palette.

Stroke Width:

gauge1: 2
gauge2: 10
gauge3: 5
gauge4: 10
gauge5: 5
gauge6: 20
gauge7: 5

CSS Override:

This is where you can enter css styling of your choice. You must remove line breaks from the value. For example you could enter the following to create a transparent background when using an hx profile.

body { background: transparent; } .hxPx { background: transparent !important; }

Using in your HTML Page

You can now use the widget in your custom html page as long as the html file is in a appropriate station directory. E.g.:

1. Create an html page and place in your station files directory.
2. Create a div element and give it an id so you can inject the widget into this area. E.g.: widget1.
3. Add the following scripts before the closing head tag or the closing body tag. E.g.:

        <script type="text/javascript">

            var require = {
                paths: {
                    //pointing nmodule at /module is a Niagara convention, allowing us to
                    //refer to module resources without having RequireJS get hung up on
                    //the use of absolute paths everywhere.
                    "nmodule": "/module",
                    "baja": "/module/bajaScript/rc/plugin/baja",
                    "bajaScript": "/module/bajaScript/rc",
                    "bajaux": "/module/bajaux/rc",
                    "lex": "/module/js/rc/lex/lexplugin",
                    "css": "/module/js/com/tridium/js/ext/require/css",

                    "jquery": "/module/js/rc/jquery/jquery-2.1.1",
                    "Handlebars": "/module/js/rc/handlebars/handlebars-v2.0.0",
                    "Promise": "/module/js/rc/bluebird/bluebird",

                    // these are runtime dependencies
                    "hbs": "/module/js/rc/require-handlebars-plugin/hbs",
                    "i18nprecompile": "/module/js/rc/require-handlebars-plugin/hbs/i18nprecompile",
                    "json2": "/module/js/rc/require-handlebars-plugin/hbs/json2",
                    "underscore": "/module/js/rc/underscore/underscore",


                hbs: {
                    disableI18n: true

        <script type="text/javascript" src="/module/js/com/tridium/js/ext/require/require.min.js"></script>
            require(['jquery', '/module/svgGauges/rc/svgGaugesWidget.run.js'], function (jquery, app) {

            divId: '#widget1',
            height: '200px',
            width: '200px',
            backgroundColor: 'transparent',
            ord: 'station:|slot:/Drivers/NiagaraNetwork/AHU7', // a numeric point
            gaugeStyle: 'gauge7',  // gauge2, gauge3, gauge4, gauge5, gauge6, gauge7
            gaugeBackgroundColor: 'transparent',
            gaugeContainerBackgroundColor: '#222222',
            gaugeStrokeColor: '#334455', // this is the background part of the circular gauge part
            cssOverride: '',
            spectrum0Start: 0,
            spectrum0End: 20,
            spectrum1Start: 0,
            spectrum1End: 20,
            spectrum2Start: 0,
            spectrum2End: 20,
            spectrum3Start: 0,
            spectrum3End: 20,
            spectrum0Color: '#5ee432',
            spectrum1Color: '#fffa50',
            spectrum2Color: '#f7aa38',
            spectrum3Color: '#ef4655',
            strokeWidth: '5', // gauge1: 2, gauge2: 10, gauge3: 5, gauge4: 10, gauge5: 5, gauge6: 20, gauge7: 5
            textColor: '#ffffff',
            showValue: true,
            valueFontSize: '0.7em',

        <!--html to go here-->
        <div id="widget1" style="width:300px;height:300px;"></div>
        <!--Rest of your html below...-->

You May Also Like

Set Point Slider

N4 View Builder™©

tridium bms system

Floor Plan Zoning

back to more widgets...