SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 42069: Understanding the custom color palette feature in SAS® Web Report Studio

DetailsAboutRate It

Overview

Beginning with version 4.2, SAS Web Report Studio enables you to define a custom color palette for graphs. The colors that you select in the palette are assigned, in order, based on the graph’s requirements. For example, depending on data item assignments, a graph might use only one color, or it might use six different colors.

To illustrate how this feature works, this SAS note shows how the custom palette is used in a bar chart, a line graph, and a pie chart. For the example, the first four colors in the custom palette have been changed from the colors used in the currently selected style (Plateau) to the colors shown in the following display.

image label

Note: These examples were created using version 4.3. The Graph skin option shown in the previous display is not available in version 4.2.

Note: A custom palette is not used for progressive bar charts, which use preset colors. Also, for bubble plots, the color saturation is lighter than the other graph types.

Custom colors applied to a bar chart

If you insert a bar chart with Total Inventory assigned to Bar Height and Region assigned to Bars, only the first custom color is used because that is the only color that is needed to graphically represent the information.

image label

At this point, if you assign Product to Bar Subgroup, then SAS Web Report Studio must use all of the first four colors in the custom palette in order to identify the four products that are associated with each region.

image label

Custom colors applied to a line graph

Continuing with this example, the following display shows how the custom colors are used in a line graph when Total Inventory is assigned to Line Height, Region is assigned to Lines, and Product is assigned to Multiple Lines.

image label

Custom colors applied to a pie chart

Finally, the following display shows how the custom colors are used in a pie chart when Total Inventory is assigned to Segment Size, Region is assigned to Segment, and Product is assigned to Pie Subgroup.

image label



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Web Report Studioz/OS4.29.2 TS2M0
Microsoft® Windows® for x644.29.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition4.29.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition4.29.2 TS2M0
Microsoft Windows Server 2003 Standard Edition4.29.2 TS2M0
Microsoft Windows Server 2003 for x644.29.2 TS2M0
Microsoft Windows Server 2008 for x644.29.2 TS2M0
Microsoft Windows XP Professional4.29.2 TS2M0
Windows Vista4.29.2 TS2M0
Windows Vista for x644.29.2 TS2M0
64-bit Enabled AIX4.29.2 TS2M0
64-bit Enabled Solaris4.29.2 TS2M0
HP-UX IPF4.29.2 TS2M0
Linux for x644.29.2 TS2M0
Solaris for x644.29.2 TS2M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.