Next: , Previous: , Up: SPV Legacy Detail Member XML Format   [Contents][Index]


D.4.3 The sourceVariable Element

Parent: visualization
Contents: extension* (format | stringFormat)?

This element defines a variable whose values can be used elsewhere in the visualization. It ties this element’s id to a variable from the tableData.bin member that corresponds to this .xml.

This element has the following attributes.

Required: categorical

Always set to true.

Required: source

Always set to tableData, the source-name in the corresponding tableData.bin member (see SPV Legacy Member Metadata).

Required: sourceName

The name of a variable within the source, the variable-name in the corresponding tableData.bin member (see SPV Legacy Member Data).

Optional: dependsOn

The variable-name of a variable linked to this one, so that a viewer can work with them together. For a group variable, this is the name of the corresponding categorical variable.

Optional: label

The variable label, if any

Optional: labelVariable

The variable-name of a variable whose string values correspond one-to-one with the values of this variable and are suitable for use as value labels.