LabelForm.setCollisionModifier(value)
Specifies how collisions (labels occupying the same location) should be handled.
Values
VLabel.MOVE_NONE // no adjustment
VLabel.MOVE_FREE // move label any direction
VLabel.MOVE_RIGHT // move label right
VLabel.MOVE_UP // move label up
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)
dataset = [["State","Quantity"], ["NJ",200], ["NY",300]];
graph = new EGraph();
var elem = new IntervalElement("State", "Quantity");
var form1 = new LabelForm();
var form2 = new LabelForm();
form1.setLabel("label1");
form1.setValues(['NY', 100]);
form2.setLabel("label2");
form2.setValues(['NY', 100]);
form1.setCollisionModifier(VLabel.MOVE_FREE);
graph.addForm(form1);
graph.addForm(form2);
graph.addElement(elem);

See Also
DataSet, to use a Data Block or query as the dataset source.
| << LabelForm.setAlignmentY(value) | © 1996-2013 InetSoft Technology Corporation (v11.4) | LabelForm.setInsets(value) >> |