How to: |
The invert property controls the direction of a numeric axis, ascending or descending.
axisname: { invert: boolean }
where:
Can be:
Specifies whether the axis should be descending. Can be:
The following request draws a descending y-axis:
GRAPH FILE WFLITE
SUM COGS_US
BY MODEL
WHERE PRODUCT_CATEGORY EQ 'Computers'
ON GRAPH HOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_JS
border: {width: 2, color: 'teal'},
blaProperties: {lineConnection: 'curved'},
yaxis: {
invert:true
}
*END
ENDSTYLE
END
The output is:
Information Builders |