InetSoft Product Information: Graph Object

Below are some examples of graph charts generated by InetSoft's graph charting engine. And following is documentation on using InetSoft's JavaScript-like API for programmatically generating charts. Alternatively use InetSoft's drag-and-drop chart designer.

Geographic Business Intelligence screenshot
Geographic Business Intelligence screenshot
Geographic Business Intelligence screenshot
 

Documentation

The EGraph object represents the graph definition. To create a new EGraph object, call the EGraph constructor.

graph = new EGraph();
view demo icon
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software.

EGraph.addElement(elem)

Adds the specified GraphElement to the chart. See Chart Elements for available elements.

Parameter

elem a DataSet object

Example (Report or Viewsheet):

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 LineElement("State", "Quantity");
graph.addElement(elem);
#1 Ranking: Read how InetSoft was rated #1 for user adoption in G2's user survey-based index Read More

EGraph.addForm(form)

Adds the specified GraphForm to the chart. See Chart Annotation and Decoration for available forms.

Parameter

form a GraphForm object

Example (Report or Viewsheet):

importPackage(inetsoft.graph)
importPackage(inetsoft.graph.element)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.data)
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");
var form = new LineForm();
form.addPoint(new java.awt.Point(0,0));
form.addPoint(new java.awt.Point(100,100));
form.addPoint(new java.awt.Point(200,100));
form.setFill(true);
graph.addForm(form);
graph.addElement(elem);
Previous: Style Chart API - Object Hierarchy