This post is part of a mini-series leading up to PharmaSUG 2019 where I will be leading a hands-on training titled: Developing Custom SAS Studio Tasks for Clinical Graphs. For those who can't attend in person, I'll be posting about all of the tasks here on SAS Communities. Each task allows users to customize a different clinical graph from Sanjay Matange’s posts on Graphically Speaking.
This week on Custom Task Tuesday we will look at a task for creating and customizing this clinical profile line chart:
Here's what the task looks like:
While last week's task featured all of the options on one tab, this week's task divides up the controls into DATA and APPEARANCE. Dividing controls into tabs is standard for built-in SAS Studio tasks. Standard tab names are DATA, OPTIONS, OUTPUT, and APPEARANCE. The INFORMATION tab is always created automatically from the Registration section of the task.
Within the tabs, controls are structured into collapsible groups. On the DATA tab are DATA and ROLES groups, which are standard names for built-in tasks. On the APPEARANCE tab, there is a GRAPH OPTIONS group.
The UI section of a task shows the break-down of controls within groups within containers (tabs). The UI section for the Lipid Profile task is shown below:
<UI>
<Container option="DATATAB">
<Group option="DATAGROUP" open="true">
<DataItem data="DATASOURCE"/>
</Group>
<Group option="ROLESGROUP" open="true">
<RoleItem role="GROUPVAR"/>
<RoleItem role="DAYVAR"/>
<RoleItem role="MEDIANVAR"/>
<RoleItem role="LCLVAR"/>
<RoleItem role="UCLVAR"/>
</Group>
</Container>
<Container option="APPEARANCETAB">
<Group option="GROUPGRAPH" open="true">
<OptionItem option="textTITLE1"/>
<OptionChoice option="comboTHEME">
<OptionItem option="inspire"/>
<OptionItem option="illuminate"/>
<OptionItem option="grayscale"/>
<OptionItem option="pastel"/>
<OptionItem option="bright"/>
<OptionItem option="dark"/>
<OptionItem option="default"/>
</OptionChoice>
<OptionChoice option="comboLEGENDLOC">
<OptionItem option="inside"/>
<OptionItem option="outside"/>
</OptionChoice>
<OptionChoice option="comboLEGENDPOS">
<OptionItem option="bottom"/>
<OptionItem option="bottomleft"/>
<OptionItem option="bottomright"/>
<OptionItem option="left"/>
<OptionItem option="right"/>
<OptionItem option="top"/>
<OptionItem option="topleft"/>
<OptionItem option="topright"/>
</OptionChoice>
<OptionItem option="labelORIENTATION"/>
<OptionItem option="radioAuto"/>
<OptionItem option="radioHorizontal"/>
<OptionItem option="radioVertical"/>
</Group>
</Container>
</UI>
Download the lipid profile task on the Task Tuesday GitHub!
Use the hashtag #CustomTaskTuesday and tweet @OliviaJWright with your Custom Task comments and questions!
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.