AxisSpec.setAbbreviate(boolean)
Specifies that the common prefix of TimeScale labels should be omitted to conserve space. This property is only observed when a Date format is specified.
Parameter
boolean true: drop common prefixes
false: do not drop prefixes
Note: Script that modifies 'graph' should be placed at the element level. See Adding Element-Level Script in Report Scripting and Adding Component Script in Dashboard Scripting for more information.
Example (Report or Viewsheet)
var date1 = new Date();
var date2 = new Date();
date1.setFullYear(2008,0,1);
date2.setFullYear(2008,10,1);
dataset = [["Date", "Quantity"], [date1,200], [date2,300]];
graph = new EGraph();
var elem = new IntervalElement("Date", "Quantity");
var tscale = new TimeScale("Date");
var aspec = new AxisSpec();
var tspec = new TextSpec();
tspec.setFormat(java.text.SimpleDateFormat('yyyy-MMM'));
aspec.setTextSpec(tspec);
aspec.setAbbreviate(true);
tscale.setAxisSpec(aspec);
graph.setScale("Date", tscale);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << CR.4.8 AxisSpec | © 1996-2013 InetSoft Technology Corporation (v11.4) | AxisSpec.setAllTicks(boolean) >> |