Defining a Gauge widget

A Gauge widget is a simple status indicator that displays a needle that moves within a range of numbers displayed on its outside edges. An example of a gauge is a car's speedometer. Like the Cylinder and Thermometer widgets, this type of widget is designed to display the value of a single metric. The needle within the gauge is a visual representation of that single metric value.

The Gauge widget is most useful when combined with a selector because this allows users to choose specific metric values to display in the gauge. In the image below, the location of the needle in the gauge represents revenue in million (the Revenue metric).

To define a Gauge widget

  1. Insert a Gauge widget into the document. For steps, see Inserting a widget into a document

  2. Add objects to the widget template. To do this, from the Dataset Objects panel on the left, select attributes and metrics and drag them on top of the widget, using the following requirements:

    1. Place at least one attribute on the widget template's rows. Its elements are displayed in the selector.

    2. Place one metric on the widget template's columns. This ensures that the needle in the gauge represents the metric values.

  3. Right-click the widget template, select View Mode, and then Graph. The widget template is displayed in a graph view.

  4. Right-click the widget template and select Format. The Format: Graph dialog box is displayed.

  5. On the General tab, from the Graph Type drop-down list, select Gauge.

  6. By default, the numbers displayed on the Gauge widget are the same minimum and maximum Y1 values specified for the Gauge graph. To specify a minimum and maximum value, on the Axes tab select the Minimum Value and Maximum Value check boxes and type minimum and maximum Y1-axis values appropriate for your data.

  7. To format the Gauge widget, click the Options tab. For details, see Formatting a Gauge widget.

  8. Click OK to apply the changes and close the dialog box.

  9. Insert a selector next to the Gauge widget. This selector allows users to choose different attribute elements. Assign the attribute as the selector's source. For steps to insert a selector and select a source for it, see Inserting a selector into a document.

  1. Set the Gauge widget template as the target of the selector. To do so, right-click the selector and select Select Target. Then click the Gauge widget template to assign it as the selector's target.

  2. It is recommended you also drag the dataset report from the Dataset Objects panel and place it beneath the selector. This allows you to see the report's values as you select different attribute elements from the selector and see how they change the appearance of the Gauge widget.

  3. View and test your results by selecting Flash Mode from the View menu.

 

Modify the Gauge widget

  1. In Flash Mode, right-click the widget and select Properties. The Gauge dialog box opens. These are the options:

  1. Click OK to save your changes and close the dialog box.

To use the widget as a selector

  1. In Design or Editable Mode, do one of the following:

  1. Select the target Grid/Graph or panel stack in the list of available targets on the left. Click > to add it to the list of selected targets on the right. You can select multiple targets.

The attribute, custom group, or consolidation you selected in the Grid/Graph is the source, and the selected Grid/Graph is the target. The Action Type of the selector is set to Select Element.

  1. To ensure that the user can select more than one element in the widget, select the Show option for All check box.

  2. To ensure that the element displayed in the selector changes if an element is chosen in another selector, select Allow selection to be updated by other selectors.

  3. Click OK to apply the changes and return to the document.

 

Related topics