How to: |
The visible property controls the visibility of individual series.
series: [ ( series: snumber, visible: boolean, } ]
where:
Is a zero-based series number. If the series does not exist in the chart, the property is ignored.
Controls the visibility of the specified series. Valid values are:
The following request against the GGSALES data source generates a vertical bar chart and makes series 0 not visible:
GRAPH FILE GGSALES
SUM DOLLARS BUDDOLLARS DOLLARS BUDDOLLARS
BY CATEGORY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
*GRAPH_JS
title: {visible:true, text: '{series: 0, visible: false}',font: '14pt Verdana',color: 'brown'},
border:{width:2, color:'teal'},
series: [
{series: 0, color: 'rgb(204,255,255)', label:'SERIES ZERO', visible: false},
{series: 1, color: 'tan', label: 'SERIES ONE'},
{series: 2, color: 'lightblue', label: 'SERIES TWO'},
{series: 3, color: 'rgb(226,185,229)', label: 'SERIES THREE'}
]
*END
ENDSTYLE
END
On the output, series 0 has no risers and no entry in the legend:
WebFOCUS |