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: size} 

where:

size

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



Example: Controlling the Size of Legend Markers

The following request against the GGSALES data source increases the size of the legend markers to 20:

GRAPH FILE GGSALES
SUM DOLLARS BUDDOLLARS UNITS BUDUNITS
BY PRODUCT
WHERE CATEGORY EQ 'Gifts'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_JS
  legend: {
    markerSize: 20    
     },
series: [
    {series: 0, color: 'lightgreen'},
    {series: 1, color: 'coral'},
    {series: 2, color: 'lightblue'},
    {series: 3, color: 'burlywood'} 
]
*END
INCLUDE=ENIADefault_combine.sty,$
ENDSTYLE
END

The output is:


WebFOCUS