InetSoft Product Information: Visual Reporting API

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

Visual Reporting API Example
Visual Reporting API Sample
Visual Reporting API Output
 

Documentation

GraphElement.setSizeFrame(frame)

Specifies the size of graphical elements. A SizeFrame can size-code chart elements by value, or simply specify a static size.

Parameter
 frame
 a SizeFrame object
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.coord)
 importPackage(inetsoft.graph.guide.form)

 var arr = [["State", "Quantity", "width"],
            ["NJ", 200, 5],
            ["NY", 300,10],
            ["PA",75,15]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity")
 var frame = new LinearSizeFrame();
 frame.setField("width");
 frame.setSmallest(10);
 frame.setLargest(50);
 frame.setMax(100);
 elem.setSizeFrame(frame);
 graph.addElement(elem);
#1 Ranking: Read how InetSoft was rated #1 for user adoption in G2's user survey-based index Read More

GraphElement.setTextFrame(frame)

Specifies the data values to be displayed on the chart elements as text, as well as the mapping between element values and displayed text.

Parameter
 frame
 a TextFrame object
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.coord)
 importPackage(inetsoft.graph.guide.form)
 
 var arr = [["State", "Quantity"], ["CA", 200], ["NY", 300]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new PointElement("State", "Quantity");
 var frame = new DefaultTextFrame();
 frame.setField("Quantity");
 elem.setTextFrame(frame);
 graph.addElement(elem);
view gallery
View live interactive examples in InetSoft's dashboard and visualization gallery.

GraphElement.setTextSpec(spec)

Specifies the text attributes such as color, font, format, etc.

Parameters
 frame
 a TextureFrame object
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.coord)
 importPackage(inetsoft.graph.guide.form)
 
 var arr = [["State", "Quantity"], ["NJ", 300], ["NY", 200]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity");
 var frame = new StaticTextureFrame();
 frame.setTexture(GTexture.PATTERN_18)
 elem.setTextureFrame(frame);
 graph.addElement(elem);
view demo icon
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software.

IntervalElement

The IntervalElement object contains the visual elements for bar charts and range visualization. To create a new IntervalElement object, call the IntervalElement constructor.

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

You can pass a set of fields as input to the constructor (e.g., 'State', 'Quantity'), or specify these later using the addDim() and addVar() methods.

Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.element)
 
 var arr = [["State", "Quantity"], ["NJ",200], ["NY",300]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity");
 graph.addElement(elem);
Learn how InetSoft supercharges BI with Spark to make machine learning easy.

InetSoft Viewpoint

Visualization refers to the visual representation and exploration of large data sets where graphical views of the data can lead to the observation of trends or aberrations in the data. Common office applications such as Microsoft Excel serve a purpose of self-service analysis and charting of data, particularly when the datasets of interest and the questions asked of them are well understood. Visual analysis, on the other hand, lends itself to data exploration, finding answers to unanticipated questions, discovering patterns in data, and suggesting areas for further statistical analysis. Furthermore, visualization enables multi-dimensional analysis that reveals hidden relationships among multiple variables.

Sophisticated visual analysis software can be out of reach for some users, or can be overly complicated for business users who are not statisticians or analysts. Visualize Free has been designed for a person of average analytic skills to use with an easy data import step, a drag and drop visualization designer, and a simple point-and-click interface to filter and sort as they explore his/her data. Users have the option to keep their data and visualizations private, or share them with colleagues.

Previous: Graph Element