LineElement.setClosed(boolean)
Specifies whether the line object should be automatically closed (i.e., endpoints connected).
Type
Boolean
true: close the figure
false: do not close
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.element)
var arr = [["State","Quantity"], ["NJ",100], ["NY",300],
["PA",200]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
elem = new LineElement("State", "Quantity")
elem.setClosed(true);
graph.addElement(elem);
 |
“Flexible product with great training and support. The product has been very useful for quickly creating dashboards and data views. Support and training has always been available to us and quick to respond.
- George R, Information Technology Specialist at Sonepar USA
|
LineElement.setEndArrow(boolean)
Specifies whether an arrow should be drawn at the end of the line (last point).
Parameters
Boolean
true: draw arrow
false: do not draw arrow
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.element)
var arr = [["State","Quantity"], ["NJ",100], ["NY",300],
["PA",200]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
elem = new LineElement("State", "Quantity")
elem.setEndArrow(true);
graph.addElement(elem);
 |
“We evaluated many reporting vendors and were most impressed at the speed with which the proof of concept could be developed. We found InetSoft to be the best option to meet our business requirements and integrate with our own technology.”
- John White, Senior Director, Information Technology at Livingston International |
LineElement.setStackGroup(boolean)
Specifies whether each subgroup receives an independent element (separate line), or whether a single element is used for all.
Parameters
Boolean
true: independent lines for each group
false: single line for all groups (default)
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.element)
var arr = [["State","Product","Quantity"], ["NJ","P1",200],
["NJ","P2",300], ["NY","P1",300],
["NY","P2",100]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
var elem = new LineElement("State", "Quantity");
elem.setColorFrame(new CategoricalColorFrame("Product"));
elem.setStackGroup(true);
graph.addElement(elem);
LineElement.setStackNegative(Boolean)
Specifies whether negative and positive values stack independently on opposite sides of the axis, or whether stacking is cumulative (i.e., determined arithmetically).
Parameters
Boolean
true: independent stack order for each group
false: single stack order for all groups
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.element)
var arr = [["State","Product","Quantity"], ["NJ","P1",200],
["NJ","P2",300], ["NY","P1",-300],
["NY","P2",100]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
var elem = new LineElement("State", "Quantity");
var scale = new LinearScale("Quantity");
elem.setColorFrame(new CategoricalColorFrame("Product"));
elem.setStackGroup(true);
elem.setStackNegative(false);
elem.setCollisionModifier(GraphElement.STACK_SYMMETRIC);
graph.addElement(elem);