Skip to main content

SR Set

 <!-- sr set w/ options -->
<xtable dataset="greatest_data">
<metrics>
<metric key="pct" label="Percent" valueFormat=".0%" syntaxTemplate="pctin({entry},{option})"/>
</metrics>
<optionSets>
<optionSet name="options1" label="Options" stack="true" stackWidth="500">
<option value="1" label="Strongly Agree" />
<option value="2" label="Slightly Agree" />
<option value="3" label="Neither Agree nor Disagree" />
<option value="4" label="Slightly Disagree" />
<option value="5" label="Strongly Disagree" />
</optionSet>
</optionSets>
<entries type="array">
<entry value="qh24_1" label="I enjoy doing jumping jacks at home" />
<entry value="qh24_2" label="Jumping jacks at home is a way for me to save money" />
<entry value="qh24_3" label="I will do jumping jacks at home less often once I am more jacked" />
<entry value="qh24_5" label="I look for devices that make jumping jacks at home easier and faster" />
<entry value="qh24_6" label="I consider myself to be a jumping jack expert" />
</entries>
</xtable>

Metrics / Entries

These entries are a little more structured than standard sr/mr questions, because the syntax for a data cell is constructed using both an entry and an option. So the metric syntaxTemplate will need to incorporate both.

If you need more specialized syntax, you can adjust your syntaxTemplate to something more custom. See Metrics to understand how the {bracketed} keywords are replaced with attributes from entry and option.

<metrics>
<metric key="pct" label="Percent" valueFormat=".0%" syntaxTemplate="pctin({entry},{option})"/>
</metrics>
<entries type="array">
<entry value="qh24_1" label="I enjoy doing jumping jacks at home" />
<entry value="qh24_2" label="Jumping jacks at home is a way for me to save money" />
<entry value="qh24_3" label="I will do jumping jacks at home less often once I am more jacked" />
<entry value="qh24_5" label="I look for devices that make jumping jacks at home easier and faster" />
<entry value="qh24_6" label="I consider myself to be a jumping jack expert" />
</entries>

OptionSets

See Options.

Selectors

If entries list has multiple dimensions, see Selectors.

Row Groupings

Row groupings (groupBy) are supported as a way to group rows into sections with a section header. See Row Groupings in SR/MR.

Pinning

See explanation in SR/MR.