Free Chart Tools

Looking for free chart tools? InetSoft provides both free and commercial chart tools. Click the Start Free button and register with any email address, including free email services such as Google and Yahoo. There is no credit card required. Use the 100% web app with no desktop install. Collaborate online in real time. Use data sources such as uploaded Excel or CSV files or connect to live Google sheets. Publicly share dashboards, if you wish, via URL link. All advanced data visualization types and interactive controls are available.

 
Try Free BI Software
View 2-min Dashboard Demo
Free Dashboard Software Download
 

Documentation

Coordinate.transpose()

Interchanges the axes. For example, in a rectangular coordinate system, the X-axis becomes the Y-axis, and the Y-axis becomes the X-axis.

Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.coord)
 
 var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("State", "Quantity");
 var sscale = new CategoricalScale("State");
 var qscale = new LinearScale("Quantity");
 var coord = new RectCoord(sscale,qscale);
 coord.transpose()
 graph.setCoordinate(coord);
 graph.addElement(elem);

PolarCoord

The PolarCoord object contains polar coordinates against which data can be represented. To create a PolarCoord object, call the PolarCoord constructor:

 var polar = new PolarCoord(rect);

You can pass a RectCoord object to the constructor (e.g., 'rect'), or specify this later using the PolarCoord.setCoordinate(coord) property.

Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.coord)
 
 var arr = [["State","Quantity"], ["CA",200], ["NY",300]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("Quantity");
 var yscale = new LinearScale("Quantity");
 var rect = new RectCoord(null, yscale);
 var polar = new PolarCoord(rect);
 var frame = new CategoricalColorFrame();
 var range = new StackRange();
 polar.setType(PolarCoord.THETA);
 frame.setField("State");
 elem.setColorFrame(frame);
 elem.setCollisionModifier(GraphElement.MOVE_STACK);
 yscale.setScaleRange(range);
 var spec = new AxisSpec();
 spec.setLabelVisible(false);
 spec.setTickVisible(false);
 spec.setLineVisible(false);
 yscale.setAxisSpec(spec);
 graph.setCoordinate(polar);
 graph.addElement(elem);

PolarCoord.setType(value)

Specifies the type of polar transformation.

Parameter
 value
 PolarCoord.THETA       (use only angle)
 PolarCoord.THETA_RHO   (use angle and radius)
 PolarCoord.RHO         (use only radius)
 PolarCoord.PLUS  (angle & radius, with hole)
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.coord)
 
 var arr = [["State","Quantity"], ["CA",200], ["NY",300]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new IntervalElement("Quantity");
 var yscale = new LinearScale("Quantity");
 var rect = new RectCoord(null, yscale);
 var polar = new PolarCoord(rect);
 var frame = new CategoricalColorFrame();
 var range = new StackRange();
 polar.setType(PolarCoord.THETA);
 frame.setField("State");
 elem.setColorFrame(frame);
 elem.setCollisionModifier(GraphElement.MOVE_STACK);
 yscale.setScaleRange(range);
 var spec = new AxisSpec();
 spec.setLabelVisible(false);
 spec.setTickVisible(false);
 spec.setLineVisible(false);
 yscale.setAxisSpec(spec);
 graph.setCoordinate(polar);
 graph.addElement(elem);

PolarCoord.setCoordinate(coord)

Specifies the rectangular coordinates on which the polar coordinates should be based.

Parameter
 coord a RectCoord object
Example (Report or Viewsheet)
 importPackage(inetsoft.graph)
 importPackage(inetsoft.graph.data)
 importPackage(inetsoft.graph.scale)
 importPackage(inetsoft.graph.aesthetic)
 importPackage(inetsoft.graph.element)
 importPackage(inetsoft.graph.coord)
 
 var arr = [["Direction", "Score"], [(Math.PI/2),20],
            [(Math.PI/4),30], [(Math.PI),35]];
 dataset = new DefaultDataSet(arr);
 graph = new EGraph();
 var elem = new PointElement("Direction", "Score");
 var xscale = new LinearScale("Direction");
 var yscale = new LinearScale("Score");
 yscale.setMin(0);
 yscale.setMax(40);
 xscale.setMin(0);
 xscale.setMax(1.95*Math.PI);
 xscale.setIncrement(Math.PI/8);
 var rect = new RectCoord(xscale,yscale);
 var polar = new PolarCoord();
 polar.setCoordinate(rect);
 graph.setCoordinate(polar);
 graph.addElement(elem);
Previous: Free Graphing Tools