metric
The metric variable is part of the array of objects you use to define data and non-data values for this visualization.
Note: You must be an administrator to manage custom visual types.
Type
metric
Editor
metric variables are not represented on the settings panel. Enable editing a metric variable by adding an axis label for the variable using the createAxisLabel method on the controller.
Variable Specific Properties
| Property | Argument | Description | ||
|---|---|---|---|---|
|
string |
The name of the color palette to use by default. The value |
||
|
string |
Set to |
||
|
string |
Available values include |
||
|
object |
All properties are optional. |
||
|
|
boolean |
When set to |
|
|
array of object |
Enable to allow setting of a default configuration for the chosen field. |
||
|
|
string |
A value of |
|
|
|
object |
|
|
|
|
|
boolean |
If |
|
|
|
integer |
The number of colors to include in the color palette by default. 0 will choose the smallest palette available. |
|
|
|
string |
Available values include |
|
|
|
string |
Available values include |
Generic Properties
Generic properties apply to many variables.
| Property | Argument | Description |
|---|---|---|
|
string |
The name of the property. It must be unique among all variables on the visualization. This name is used to access the data accessor and/or variable value on the controller provided to the visualization. |
|
string |
A description of the variable for your reference. This is not displayed in the UI. |
|
array of strings |
A list of field types to include when selecting fields for this variable. Accepted values:
|
|
integer |
The number of colors to include in the color palette by default. 0 will choose the smallest palette available. |
|
boolean |
Triggers the UI to require a value for certain variable types. Not used for this variable type. |
Deprecated Properties
| Property |
|---|
|
|
Comments
0 comments
Please sign in to leave a comment.