Applying a Shadow to the Legend Area

How to:

The shadow property applies a shadow to the legend area.


Top of page

x
Syntax: How to Apply a Shadow to the Legend Area

To enable or disable a default shadow on the legend area, use the following:

legend: {
   shadow: boolean}

where:

shadow: boolean

Can be:

  • true, which enables a default shadow on the legend area.
  • false, which disables a default shadow on the legend area. This is the default value.


Example: Applying a Shadow to the Legend Area

The following request generates a default shadow around the legend area:

GRAPH FILE WF_RETAIL_LITE
SUM DISCOUNT_US GROSS_PROFIT_US REVENUE_US MSRP_US
BY PRODUCT_CATEGORY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
*GRAPH_JS
  legend: {
     shadow: true, 
     backgroundcolor: 'tan',
     lineStyle: {color: 'blue'}
 },
series: [
    {series: 0, color: 'lightgreen'},
    {series: 1, color: 'coral'},
    {series: 2, color: 'lightblue'},
    {series: 3, color: 'burlywood'} 
]
*END
ENDSTYLE
END

The output is:


WebFOCUS