Controlling the Size of Legend Markers

How to:

The markerSize property controls the size of legend markers.


Top of page

x
Syntax: How to Control the Size of Legend Markers
legend: {markerSize: number} 

where:

markerSize: number

Defines the size of legend markers in pixels. The default value is 8.



Example: Controlling the Size of Legend Markers

The following request increases the size of the legend markers to 20:

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: {
    markerSize: 20   
 },
series: [
    {series: 0, color: 'lightgreen'},
    {series: 1, color: 'coral'},
    {series: 2, color: 'lightblue'},
    {series: 3, color: 'burlywood'} 
]
*END
ENDSTYLE
END
TYLE
END

The output is:


WebFOCUS