## Introduction

This article describes how to create an automatically updating number in a shape using the Visualization library. We'll go from any number - in a table, R Output, or entered directly into the function to the same number shown on screen in a shape, like this:

## Requirements

Any number. This can come from either:

- Typing it into the function directly
- From an R Output
- From a table
- From the Sum of a variable
- From the Average of a variable
- From the Percentage of a variable

For the options **Number in Donut**, **Modern Gauge**, and **Number on Bar** the number represented should be a percentage or proportion out of a maximum value. For the more basic functions **Number**, **Number in Oval**, and **Number in Rectangle**, there is no such requirement.

## Method 1

For **Number**, **Number in Oval**, and **Number in Rectangle **take the steps here:

1. Go to **Visualization > Number > [type of number in shape you would like]**.

2. In the **object inspector **under **Inputs > DATA SOURCE ****> Data source **select how you want to provide your number to the function. For the rest of these instructions, the option **Type or paste value **was selected.

3. Under **Inputs > DATA SOURCE > Input data **enter the number you want to represent in the visualization.

## Method 2

For **Number in Donut**, **Modern Gauge**, and **Number on Bar**** **take the steps here:

1. Go to **Visualization > Number > [type of number in XXXXX you would like]**.

2. In the **object inspector **under **Inputs > DATA SOURCE ****> Data source **select how you want to provide your number to the function. For the rest of these instructions, the option **Type or paste value **was selected.

3. Under **Inputs > DATA SOURCE > Input data **enter the number you want to represent in the visualization as a fraction of 1 if you're showing a percentage, e.g. 0.25 for 25%.

4. Under **Inputs > OUTPUT > Maximum value **set the maximum value for the number. By default, this is 100%, but this could be any number, e.g. 365, and the **Input data **value could then be a number less than or equal to 365.

## See Also

How to Create a Single Icon Pictograph

## Comments

0 comments

Article is closed for comments.