Returns a handle to the GraphForm object specified by the index. This is useful in cases where the form was not explicitly assigned to a variable at creation time.
index Integer index of form
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); graph.addForm(new LineForm()); var form = graph.getForm(0); form.addPoint(java.awt.Point(100,100)); form.addPoint(java.awt.Point(200,200)); form.setColor(java.awt.Color(0xff0000)); graph.addElement(elem);
Returns the number of forms currently present on the chart.
importPackage(inetsoft.graph) importPackage(inetsoft.graph.data) importPackage(inetsoft.graph.element) importPackage(inetsoft.graph.aesthetic) importPackage(inetsoft.graph.guide.form) var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]]; dataset = new DefaultDataSet(arr); graph = new EGraph(); var elem = new IntervalElement("State", "Quantity"); graph.addForm(new LineForm()); graph.addForm(new LineForm()); graph.addForm(new LineForm()); var formCount = graph.getFormCount(); for (var i=0;i
Returns a handle to the Scale object specified by the field name parameter. This is useful in cases where the scale was not explicitly assigned to a variable at creation time.
field String representing field name
var scale = graph.getScale("Sum(Total)"); scale.setMin(600000); scale.setMax(1000000);
Copyright © 2024, InetSoft Technology Corp.