InetSoft Product Information: Visualization API

IntervalElement.addInterval(lower,upper)

Adds a “floating” interval element (bar) with lower and upper values specified by the inputs.

Parameters
 lower
 Name of field defining lower values (String)
 
 upper
 Name of field defining upper values (String)
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.element)
 
 var arr = [["Student","Bottom Score", "Top Score"],
            ["Joe",70,80], ["Eric",50,90],
            ["Jane",90,100], ["Sue",40,45]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement();
 elem.addDim("Student");
 elem.addInterval("Bottom Score","Top Score")
 graph.addElement(elem);
dashboard demo
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software.

IntervalElement.setStackGroup(boolean)

Specifies whether each element group (i.e., bar series) should be stacked independently, or whether all should form a single stack order.

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","Quantity"], ["NJ",200], ["NJ",300],
            ["NY",300], ["NY",100]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity");
 var scale = new LinearScale("Quantity");
 var frame = new HeatColorFrame();
 frame.setField("Quantity");
 elem.setColorFrame(frame);
 elem.setStackGroup(true);
 elem.setCollisionModifier(GraphElement.STACK_SYMMETRIC);
 graph.addElement(elem);

IntervalElement.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 group
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", 200], ["NJ", 300],
            ["NY", -300], ["NY", 100]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity");
 var scale = new LinearScale("Quantity");
 var frame = new HeatColorFrame();
 frame.setField("Quantity");
 elem.setColorFrame(frame);
 elem.setStackGroup(true);
 elem.setStackNegative(false);
 elem.setCollisionModifier(GraphElement.STACK_SYMMETRIC);
 graph.addElement(elem);

LineElement

The LineElement object contains the visual elements for a line chart. To create a new LineElement object, call the LineElement constructor.

 var elem = new LineElement("State", "Quantity");

You can pass one, two, or three field names (e.g., 'State', 'Quantity') to the constructor, or specify these later using the addDim() and addVar() methods.

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]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new LineElement("State", "Quantity")
 graph.addElement(elem);

Customer Testimonial

“Resolve is the answer to controlling spiraling business operating costs resulting from managing technology infrastructure, and adding InetSoft’s polished, HTML5-based dashboard visualization technology will be a welcome addition for both the operations users of Resolve as well as for the managers who made the investment decision to acquire it. Other aspects that made InetSoft stand out from the many options we evaluated were the ease of integration with our application and the level of support their team offered early in the proof-of-concept stage.” - Christian Mack, EVP, General Manager at generationE TECHNOLOGIES.

Read the top 10 reasons for selecting InetSoft as your BI partner.